postgres - show system databases when using separate schemas

This commit is contained in:
SPRINX0\prochazka
2024-09-20 14:52:29 +02:00
parent 8aac9cf59d
commit d3a24627dd
8 changed files with 10 additions and 18 deletions

View File

@@ -6,6 +6,6 @@ select
md5(view_definition) as "hash_code"
from
information_schema.views
where table_schema != 'information_schema' and table_schema != 'pg_catalog' and table_schema !~ '^_timescaledb_' and table_schema =SCHEMA_NAME_CONDITION
where table_schema !~ '^_timescaledb_' and table_schema =SCHEMA_NAME_CONDITION
and ('views:' || table_schema || '.' || table_name) =OBJECT_ID_CONDITION
`;