Schema "audit"

Tables

# Table Name Owner Tablespace Description
1 failed_logins postgres DEFAULT
2 logged_actions postgres DEFAULT
3 logins postgres DEFAULT

Sequences

# Sequence Name Owner Data Type Start Value Increment Description
1 failed_logins_failed_login_id_seq postgres bigint 1 1
2 logged_actions_event_id_seq postgres bigint 1 1
3 logins_login_id_seq postgres bigint 1 1

Views

# View Name Owner Tablespace Description

Materialized Views

# Matview Name Owner Tablespace Description

Functions

# Function Owner Description
1 audit_table(target_table regclass, audit_rows boolean, audit_query_text boolean, ignored_cols text[])
RETURNS void
postgres Add auditing support to a table. Arguments: target_table: Table name, schema qualified if not on search_path audit_rows: Record each row change, or only audit at a statement level audit_query_text: Record the text of the client query that triggered the audit event? ignored_cols: Columns to exclude from update diffs, ignore updates that change only ignored cols.
2 audit_table(target_table regclass, audit_rows boolean, audit_query_text boolean)
RETURNS void
postgres
3 audit_table(target_table regclass)
RETURNS void
postgres Add auditing support to the given table. Row-level changes will be logged with full client query text. No cols are ignored.
4 is_valid_login_id(bigint)
RETURNS boolean
postgres

Triggers

# Trigger Owner Description
1 if_modified_func()
RETURNS TRIGGER
postgres Track changes to a table at the statement and/or row level. Optional parameters to trigger in CREATE TRIGGER call: param 0: boolean, whether to log the query text. Default 't'. param 1: text[], columns to ignore in updates. Default []. Updates to ignored cols are omitted from changed_fields. Updates with only ignored cols changed are not inserted into the audit log. Almost all the processing work is still done for updates that ignored. If you need to save the load, you need to use WHEN clause on the trigger instead. No warning or error is issued if ignored_cols contains columns that do not exist in the target table. This lets you specify a standard set of ignored columns. There is no parameter to disable logging of values. Add this trigger as a 'FOR EACH STATEMENT' rather than 'FOR EACH ROW' trigger if you do not want to log row values. Note that the user name logged is the login role for the session. The audit trigger cannot obtain the active role because it is reset by the SECURITY DEFINER invocation of the audit trigger its self.

Types

# Type Base Type Owner Collation Default Type StoreType NotNull Description