It could refer to either a PL/pgSQL variable or a table column
In cases like these, where the code is simple straightforward enough, sometimes it is useful to rely on one of these special plpgsql commands at the start of the function text: #variable_conflict error #variable_conflict use_variable #variable_conflict use_column In this case, it would be used as follows: CREATE OR REPLACE FUNCTION core.date_bs_from_ad(date_in_ad date) RETURNS character varying … Read more