On 2013-09-19 02:01, Juan Daniel Santana Rodes wrote: > I am programming a procedure in plpgsql language and it must return a > boolean response. The procedure must return TRUE if the query is > semantically correct and if not correct, return FALSE. This must be > done without running the query. You could use EXPLAIN instead of running the actual query, catching the eventual errors and returning TRUE or FALSE depending on the outcome. I'm not sure what you mean by "semantically correct", but in addition to simple syntax errors, non-existent relations, columns, functions, etc, would also be caught. regards, CRL -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general