@@ -1351,7 +1351,11 @@ package check_postgres;
1351
1351
n1.nspname AS tschema, c1.relname AS tname,
1352
1352
n2.nspname AS cschema, c2.relname AS cname,
1353
1353
n3.nspname AS procschema, p.proname AS procname,
1354
- pg_get_triggerdef(t.oid) AS triggerdef
1354
+ pg_get_triggerdef(t.oid) AS triggerdef,
1355
+ ( WITH nums AS (SELECT unnest(tgattr) AS poz)
1356
+ SELECT string_agg(attname,',') FROM pg_attribute a JOIN nums ON
1357
+ (nums.poz = a.attnum AND tgrelid = a.attrelid)
1358
+ ) AS trigger_columns
1355
1359
FROM pg_trigger t
1356
1360
JOIN pg_class c1 ON (c1.oid = t.tgrelid)
1357
1361
JOIN pg_roles r ON (r.oid = c1.relowner)
@@ -7070,7 +7074,7 @@ sub check_same_schema {
7070
7074
[index => ' relpages,reltuples,indpred,indclass,
7071
7075
indexprs,indcheckxmin,reltablespace,
7072
7076
indkey' , ' ' ],
7073
- [trigger => ' tgqual,tgconstraint' , ' ' ],
7077
+ [trigger => ' tgqual,tgconstraint,tgattr ' , ' ' ],
7074
7078
[constraint => ' conbin,conindid,conkey,confkey,
7075
7079
confmatchtype' , ' ' ],
7076
7080
[column => ' atttypid,attnum,attbyval,attndims' , ' ' ],
0 commit comments