select table_catalog , table_schema , table_name , column_name , column_default , regexp_matches(column_default , '^nextval[\(]([^\)]+)::regclass[\)]$')
from information_schema.columns where column_default like 'nextval%'
mark
select table_catalog , table_schema , table_name , column_name , column_default , regexp_matches(column_default , '^nextval[\(]([^\)]+)::regclass[\)]$')
from information_schema.columns where column_default like 'nextval%'
mark