We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24951aa commit e1e81c0Copy full SHA for e1e81c0
lib/galaxy/model/triggers/update_audit_table.py
@@ -56,7 +56,7 @@ def statement_trigger_fn(id_field):
56
AS $BODY$
57
BEGIN
58
INSERT INTO history_audit (history_id, update_time)
59
- SELECT DISTINCT {id_field}, CURRENT_TIMESTAMP AT TIME ZONE 'UTC'
+ SELECT DISTINCT {id_field}, clock_timestamp() AT TIME ZONE 'UTC'
60
FROM new_table
61
WHERE {id_field} IS NOT NULL
62
ON CONFLICT DO NOTHING;
@@ -75,7 +75,7 @@ def row_trigger_fn(id_field):
75
76
77
78
- VALUES (NEW.{id_field}, CURRENT_TIMESTAMP AT TIME ZONE 'UTC')
+ VALUES (NEW.{id_field}, clock_timestamp() AT TIME ZONE 'UTC')
79
80
RETURN NULL;
81
END;
0 commit comments