We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05137fa commit 0739decCopy full SHA for 0739dec
audit.sql
@@ -239,3 +239,14 @@ $body$ LANGUAGE 'sql';
239
COMMENT ON FUNCTION audit.audit_table(regclass) IS $body$
240
Add auditing support to the given table. Row-level changes will be logged with full client query text. No cols are ignored.
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 = 'audit_trigger_row'::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$;
0 commit comments