This is a very abbr version of my problem, but what would be the best way to do this... DECLARE column_name_var TEXT; BEGIN RETURN NEW.column_name_var; END; -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general