Re:So, you have an input parameter named "session_id" and a query with a column named "session_id" - this is the problem. Well, I'll re-try with a revised function, but surely the database could have come up with a more meaningful and insightful message than the coded incomprehensible error message it did ? I would say its not only user error, its developer error too for creating such confusing error messages ! -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general