Useful PostgreSQL utilities
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

13 lines
337 B

SELECT pt.tablename,
CASE pc.relreplident
WHEN 'd' THEN 'default'
WHEN 'n' THEN 'nothing'
WHEN 'f' THEN 'full'
WHEN 'i' THEN 'index'
END AS replica_identity
FROM pg_publication_tables pt
left
join pg_class pc on (pt.tablename::regclass = pc.oid)
WHERE pt.pubname = 'flink_pub';