Skip to content

Commit

Permalink
Skip partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
mfvanek committed Dec 9, 2024
1 parent 1ff7b1c commit 055fd8b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql/tables_without_description.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ from
pg_catalog.pg_class pc
inner join pg_catalog.pg_namespace nsp on nsp.oid = pc.relnamespace
where
pc.relkind = 'r' and
pc.relkind in ('r', 'p') and
not pc.relispartition and
(obj_description(pc.oid) is null or length(trim(obj_description(pc.oid))) = 0) and
nsp.nspname = :schema_name_param::text
order by table_name;

0 comments on commit 055fd8b

Please # to comment.