diff --git a/instancia_omop_postgresql/grants.sql b/instancia_omop_postgresql/grants.sql new file mode 100644 index 0000000000000000000000000000000000000000..d1dc4f26fa26a7a168393f613bb768244cbe0fab --- /dev/null +++ b/instancia_omop_postgresql/grants.sql @@ -0,0 +1,11 @@ +GRANT SELECT ON ALL TABLES IN SCHEMA omop TO omop_select; + +GRANT USAGE ON SCHEMA omop TO omop_select; + +SELECT * + FROM information_schema.role_table_grants + WHERE grantee = 'omop_select'; + +SELECT * + FROM pg_tables + WHERE tableowner = 'omop_select';