Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a view showing all tables for which auditing has been set up #33

Merged
merged 2 commits into from Jan 3, 2019

Conversation

archaeogeek
Copy link

Added a view showing all tables for which auditing has been set up

audit.sql Outdated
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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This may only work for tables with row level tiggers
Could add a "OR ... = 'audit_trigger_stm' " for completenesss

@archaeogeek
Copy link
Author

@jackhamburger how about this?

@jackhamburger
Copy link

LGTM

@ringerc ringerc merged commit cc3bb4d into 2ndQuadrant:master Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants