Need exact SQL query to find List of Detach Partitioned Tables (Yet to be Dropped)
От | Bharani SV-forum |
---|---|
Тема | Need exact SQL query to find List of Detach Partitioned Tables (Yet to be Dropped) |
Дата | |
Msg-id | 98965993.3138805.1731699978332@mail.yahoo.com обсуждение исходный текст |
Ответ на | Re: postgresql-17.0-1 Application - silent installation Issue (Rob Sargent <robjsargent@gmail.com>) |
Ответы |
Re: Need exact SQL query to find List of Detach Partitioned Tables (Yet to be Dropped)
Re: Need exact SQL query to find List of Detach Partitioned Tables (Yet to be Dropped) Help in vetting my steps for Postgres DB upgrade from Ver 13.X to ver 15.X |
Список | pgsql-general |
Team
Need exact SQL query to find List of Detach Partitioned Tables (Yet to be Dropped)
The following is the query which i used, i am using and i found an bug which is listing an newly created table (last week)
SELECT relnamespace::regnamespace::text AS schema_name, relname AS table_name
FROM pg_class c
WHERE NOT relispartition -- !
AND relkind = 'r' and lower(relnamespace::regnamespace::text) not in ('pg_catalog','partman','information_schema') and
lower(relnamespace::regnamespace::text) in ('XYZ')
order by relnamespace::regnamespace::text, relname ;
FROM pg_class c
WHERE NOT relispartition -- !
AND relkind = 'r' and lower(relnamespace::regnamespace::text) not in ('pg_catalog','partman','information_schema') and
lower(relnamespace::regnamespace::text) in ('XYZ')
order by relnamespace::regnamespace::text, relname ;
В списке pgsql-general по дате отправления: