From 682ed2bf973e69956aad0a8782af16f82c714d06 Mon Sep 17 00:00:00 2001 From: The Alchemist Date: Sat, 7 Mar 2015 11:45:07 -0500 Subject: [PATCH] action column is char(1) instead of text another bonus is that the index for that column is a lot smaller --- audit.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audit.sql b/audit.sql index 34558e7..2ed7f58 100644 --- a/audit.sql +++ b/audit.sql @@ -50,7 +50,7 @@ CREATE TABLE audit.logged_actions ( client_addr inet, client_port integer, client_query text, - action TEXT NOT NULL CHECK (action IN ('I','D','U', 'T')), + action char(1) NOT NULL CHECK (action IN ('I','D','U', 'T')), row_data hstore, changed_fields hstore, statement_only boolean not null