errposition

John Naylor <johncnaylorls@gmail.com>

From: John Naylor <johncnaylorls@gmail.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2026-05-08T04:24:02Z
Lists: pgsql-hackers
In doc/src/sgml/sources.sgml under "available auxiliary routines for
ereport", we have

"errposition(int cursorpos) specifies the textual location of an error
within a query string. Currently it is only useful for errors detected
in the lexical and syntactic analysis phases of query processing."

...but I don't see that function used that way. It seems this should
be parser_errposition instead. I'll go make it so unless someone tells
me I'm missing something.

-- 
John Naylor
Amazon Web Services