Skip to content

Commit

Permalink
Added option for showing tables with statement-level triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
archaeogeek committed Sep 6, 2018
1 parent 0739dec commit a79d1b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions audit.sql
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ CREATE OR REPLACE VIEW audit.tableslist AS
SELECT DISTINCT triggers.trigger_schema AS schema,
triggers.event_object_table AS auditedtable
FROM information_schema.triggers
WHERE triggers.trigger_name::text = 'audit_trigger_row'::text
ORDER BY schema, auditedtable;
WHERE triggers.trigger_name::text IN ('audit_trigger_row'::text, 'audit_trigger_stm'::text)
ORDER BY schema, auditedtable;

COMMENT ON VIEW audit.tableslist IS $body$
View showing all tables with auditing set up. Ordered by schema, then table.
Expand Down

0 comments on commit a79d1b2

Please sign in to comment.