errposition

From: John Naylor <johncnaylorls(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: errposition
Date: 2026-05-08 04:24:02
Message-ID: CANWCAZY5qtzeu867wMyd5qW7sxsqM=JMywLg+bQLCLr28LsRzg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2026-05-08 04:31:01 Re: [Patch] Omit virtual generated columns from test_decoding output
Previous Message Chao Li 2026-05-08 04:21:53 Fix REPACK with WITHOUT OVERLAPS replica identity indexes