Files
openGauss-OM/script/gspylib/inspection/lib/checkblacklist/GetTableWithOids.sql
hangjin2020 a2679f0cf7 om仓迁移
2020-12-16 17:25:24 +08:00

7 lines
198 B
SQL

SELECT
n.nspname AS schemaname,
c.relname AS tablename
FROM pg_class c
INNER JOIN pg_namespace n ON n.oid = c.relnamespace
WHERE c.relkind = 'r'::"char" and c.oid > 16384 and relhasoids = true;