SELECT c.oid, a.attnum, a.attname, c.relname, n.nspname, a.attnotnull OR (t.typtype = 'd' AND t.typnotnull), a.attidentity != '' OR pg_catalog.pg_get_expr(d.adbin, d.adrelid) LIKE '%nextval(%' FROM pg_catalog.pg_class c JOIN pg_catalog.pg_namespace n ON (c.relnamespace = n.oid) JOIN pg_catalog.pg_attribute a ON (c.oid = a.attrelid) JOIN pg_catalog.pg_type t ON (a.atttypid = t.oid) LEFT JOIN pg_catalog.pg_attrdef d ON (d.adrelid = a.attrelid AND d.adnum = a.attnum) JOIN (SELECT 32675 AS oid , 15 AS attnum UNION ALL SELECT 3465510, 36 UNION ALL SELECT 1032857013, 12 UNION ALL SELECT 195278, 5 UNION ALL SELECT 30947, 3 UNION ALL SELECT 3465510, 61 UNION ALL SELECT 4039496, 13 UNION ALL SELECT 4039496, 13 UNION ALL SELECT 30473, 3 UNION ALL SELECT 35071, 3 UNION ALL SELECT 4039496, 4 UNION ALL SELECT 3465510, 83 UNION ALL SELECT 4039496, 13 UNION ALL SELECT 3465510, 49 UNION ALL SELECT 1853844, 4 UNION ALL SELECT 1853844, 5 UNION ALL SELECT 39340, 3 UNION ALL SELECT 8530560, 4 UNION ALL SELECT 217956, 3 UNION ALL SELECT 1032854639, 7 UNION ALL SELECT 1032843352, 12 UNION ALL SELECT 1381055, 5 UNION ALL SELECT 1381055, 6 UNION ALL SELECT 200409, 6 UNION ALL SELECT 40485, 2 UNION ALL SELECT 1032852670, 14 UNION ALL SELECT 8867703, 5) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 
