logged_actions - Table
Home|Tables|Schemas|Diagrams|Foreign Keys|Indexes

logged_actions(Table)

PKNameData TypeNULLsA/NDefaultCommentFKUnique

event_idBigInt

nextval('logged_actions_event_id_seq'::regclass)Unique identifier for each auditable event
schema_nameText Database schema audited table for this event is in
table_nameText Non-schema-qualified table name of table event occured in
relidUniqueID Table OID. Changes with drop/create. Get with 'tablename'::regclass
session_user_nameText

Login / session user whose statement caused the audited event
action_tstamp_txTimeStampWithTimeZone Transaction start timestamp for tx in which audited event occurred
action_tstamp_stmTimeStampWithTimeZone Statement start timestamp for tx in which audited event occurred
action_tstamp_clkTimeStampWithTimeZone Wall clock time at which audited event's trigger call occurred
transaction_idBigInt

Identifier of transaction that made the change. May wrap, but unique paired with action_tstamp_tx.
application_nameText

Application name set when this audit event occurred. Can be changed in-session by client.
client_addrInet

IP address of client that issued query. Null for unix domain socket.
client_portInteger

Remote peer IP port address of client that issued query. Undefined for unix socket.
client_queryText

Top-level query that caused this auditable event. May be more than one statement.
actionText Action type; I = insert, D = delete, U = update, T = truncate
row_datahstore

Record value. Null for statement-level trigger. For INSERT this is the new tuple. For DELETE and UPDATE it is the old tuple.
changed_fieldshstore

New values of fields changed by UPDATE. Null except for row-level UPDATE events.
statement_onlyBoolean 't' if audit event is from an FOR EACH STATEMENT trigger, 'f' for FOR EACH ROW

NameTableColumnsUniqueClustered
idx_logged_actions_session_user_nameaudit.logged_actionssession_user_name
idx_logged_actions_table_nameaudit.logged_actionstable_name
logged_actions_action_idxaudit.logged_actionsaction
logged_actions_action_tstamp_tx_stm_idxaudit.logged_actionsaction_tstamp_stm
logged_actions_relid_idxaudit.logged_actionsrelid
logged_actions_relid_idx_row_dataaudit.logged_actionsrow_data