Re: client side syntax error localisation for psql (v1) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: client side syntax error localisation for psql (v1)
Date
Msg-id 20425.1079022118@sss.pgh.pa.us
Whole thread Raw
In response to client side syntax error localisation for psql (v1)  (Fabien COELHO <coelho@cri.ensmp.fr>)
Responses Re: client side syntax error localisation for psql (v1)
List pgsql-hackers
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


pgsql-hackers by date:

Previous
From: Josh Berkus
Date:
Subject: Re: Default Stats Revisited
Next
From: "scott.marlowe"
Date:
Subject: Re: Default Stats Revisited