From 3a7c0d662740673fdda7f2003154946dc3049d54 Mon Sep 17 00:00:00 2001 From: Arjun Lall Date: Wed, 4 Jun 2025 17:12:02 -0700 Subject: [PATCH] [WIP] Skip tables with insufficient permissions --- src/bemi.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bemi.py b/src/bemi.py index e639387..079962b 100644 --- a/src/bemi.py +++ b/src/bemi.py @@ -64,6 +64,11 @@ def migration_upgrade(): current_tablename, current_tablename ); END LOOP; + EXCEPTION + WHEN insufficient_privilege THEN + RAISE NOTICE 'Skipping table % due to insufficient privilege', current_tablename; + WHEN others THEN + RAISE NOTICE 'Skipping table % due to unexpected error: %', current_tablename, SQLERRM; END; $$ LANGUAGE plpgsql;