Fernando Nasser <fnasser@cygnus.com> writes:
> If instead of printing:
> ERROR: A parse error near "foo"
> we print
> ERROR: A parse error near "foo" (index=10)
> it should not affect any of the existing clients.
One objection to this idea is that it doesn't play nicely with
localization of error message texts. I'd sooner do
ERROR: A parse error near "foo"
ERRORLOCATION: 10
which doesn't create any problems with localization (there's no
particular need to translate the keywords, since a client probably
wouldn't show them to the user anyway). It's just as backward
compatible, and not that much uglier for an old client.
regards, tom lane