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 1032838367 AS oid , 3 AS attnum UNION ALL SELECT 1032838367, 4 UNION ALL SELECT 3465313, 3 UNION ALL SELECT 1032843372, 1 UNION ALL SELECT 1032857013, 13 UNION ALL SELECT 1032854639, 7 UNION ALL SELECT 1032854639, 18 UNION ALL SELECT 1032838367, 4 UNION ALL SELECT 1032838367, 49 UNION ALL SELECT 1032838367, 36 UNION ALL SELECT 1032838367, 5 UNION ALL SELECT 1032843347, 13 UNION ALL SELECT 1032854639, 8 UNION ALL SELECT 1032843372, 12 UNION ALL SELECT 10809976, 2 UNION ALL SELECT 216786404, 32 UNION ALL SELECT 216786404, 4) vals ON (c.oid = vals.oid AND a.attnum = vals.attnum) 
