how to get table id sequence postgres
SELECT table_name, column_name, column_default from information_schema.columns where table_name='testing';
Source: www.postgresql.org
SELECT table_name, column_name, column_default from information_schema.columns where table_name='testing';