File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -239,3 +239,14 @@ $body$ LANGUAGE 'sql';
239
239
COMMENT ON FUNCTION audit.audit_table(regclass) IS $body$
240
240
Add auditing support to the given table. Row- level changes will be logged with full client query text . No cols are ignored.
241
241
$body$;
242
+
243
+ CREATE OR REPLACE VIEW audit .tableslist AS
244
+ SELECT DISTINCT triggers .trigger_schema AS schema,
245
+ triggers .event_object_table AS auditedtable
246
+ FROM information_schema .triggers
247
+ WHERE triggers .trigger_name ::text IN (' audit_trigger_row' ::text , ' audit_trigger_stm' ::text )
248
+ ORDER BY schema, auditedtable;
249
+
250
+ COMMENT ON VIEW audit.tableslist IS $body$
251
+ View showing all tables with auditing set up. Ordered by schema, then table.
252
+ $body$;
You can’t perform that action at this time.
0 commit comments