You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
action_tstamp_tx TIMESTAMP WITH TIME ZONENOT NULL,
46
-
action_tstamp_stm TIMESTAMP WITH TIME ZONENOT NULL,
47
-
action_tstamp_clk TIMESTAMP WITH TIME ZONENOT NULL,
45
+
action_tstamp_tx bigintNOT NULL,
46
+
action_tstamp_stm bigintNOT NULL,
47
+
action_tstamp_clk bigintNOT NULL,
48
48
transaction_id bigint,
49
49
application_name text,
50
50
client_addr inet,
@@ -65,9 +65,9 @@ COMMENT ON COLUMN audit.logged_actions.schema_name IS 'Database schema audited t
65
65
COMMENT ON COLUMN audit.logged_actions.table_name IS 'Non-schema-qualified table name of table event occured in';
66
66
COMMENT ON COLUMN audit.logged_actions.relid IS 'Table OID. Changes with drop/create. Get with ''tablename''::regclass';
67
67
COMMENT ON COLUMN audit.logged_actions.session_user_name IS 'Login / session user whose statement caused the audited event';
68
-
COMMENT ON COLUMN audit.logged_actions.action_tstamp_tx IS 'Transaction start timestamp for tx in which audited event occurred';
69
-
COMMENT ON COLUMN audit.logged_actions.action_tstamp_stm IS 'Statement start timestamp for tx in which audited event occurred';
70
-
COMMENT ON COLUMN audit.logged_actions.action_tstamp_clk IS 'Wall clock time at which audited event''s trigger call occurred';
68
+
COMMENT ON COLUMN audit.logged_actions.action_tstamp_tx IS 'Transaction start epoch for tx in which audited event occurred';
69
+
COMMENT ON COLUMN audit.logged_actions.action_tstamp_stm IS 'Statement start epoch for tx in which audited event occurred';
70
+
COMMENT ON COLUMN audit.logged_actions.action_tstamp_clk IS 'Wall clock time epoch at which audited event''s trigger call occurred';
71
71
COMMENT ON COLUMN audit.logged_actions.transaction_id IS 'Identifier of transaction that made the change. May wrap, but unique paired with action_tstamp_tx.';
72
72
COMMENT ON COLUMN audit.logged_actions.client_addr IS 'IP address of client that issued query. Null for unix ___domain socket.';
73
73
COMMENT ON COLUMN audit.logged_actions.client_port IS 'Remote peer IP port address of client that issued query. Undefined for unix socket.';
@@ -90,30 +90,32 @@ DECLARE
90
90
h_old hstore;
91
91
h_new hstore;
92
92
excluded_cols text[] = ARRAY[]::text[];
93
+
precision int=1000000;
93
94
BEGIN
94
95
IF TG_WHEN <>'AFTER' THEN
95
96
RAISE EXCEPTION 'audit.if_modified_func() may only run as an AFTER trigger';
0 commit comments