This query can be handy for tasks such as setting up a logical replication publication, where by default a table's PRIMARY KEY
is used to identify subscriber side rows for update or delete.
By locating tables without a PRIMARY KEY
(tisk!), we're able to either update the table schema, or use an alternative replica identity type.
SELECT tbl.table_catalog,tbl.table_schema,tbl.table_name
FROM information_schema.tables tbl
WHERE