Fabien COELHO <coelho@cri.ensmp.fr> writes:
> Please find attached my first attempt at providing a localisation
> information on the client side for syntax errors in "psql".
"Localisation" tends to mean something quite different around here.
I'd suggest renaming the function to something like ReportSyntaxErrorPosition.
Would it read better to add "..." at the front and/or back of the query
extract, when you have actually truncated text at that end?
The "on line N" bit seems just noise to me.
regards, tom lane