Run SQL text through the PostgreSQL parser and return syntax error information for each contained statement.
Usage example:--------------test=# select * from pgsyncktest-# ($$test$# select '1;2;3/* not a comment */' from "My;Table" as from;test$# select x from (select 1 as x);test$# /* test;test */ begin;test$# insert into foo2 values ('1''2','3;4');test$# abort my transtest$# $$);-[ RECORD 1 ]-------------------------------------------------------------sql | | select '1;2;3/* not a comment */' from "My;Table" as fromcursorpos | 59sqlerrcode | 16801924message | syntax error at or near "from"hint | -[ RECORD 2 ]-------------------------------------------------------------sql | | select x from (select 1 as x)cursorpos | 20sqlerrcode | 16801924message | subquery in FROM must have an aliashint | For example, FROM (SELECT ...) [AS] foo.-[ RECORD 3 ]-------------------------------------------------------------sql | | /* test;test */ begincursorpos | 0sqlerrcode | 0message | hint | -[ RECORD 4 ]-------------------------------------------------------------sql | | insert into foo2 values ('1''2','3;4')cursorpos | 0sqlerrcode | 0message | hint | -[ RECORD 5 ]-------------------------------------------------------------sql | | abort my trans | cursorpos | 12sqlerrcode | 16801924message | syntax error at or near "my"hint |