Re: Regression in statement locations - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Regression in statement locations
Date
Msg-id aCvBB88wk4TWdKfO@paquier.xyz
Whole thread Raw
In response to Re: Regression in statement locations  (Sami Imseih <samimseih@gmail.com>)
Responses Re: Regression in statement locations
List pgsql-hackers
On Mon, May 19, 2025 at 05:10:14PM -0500, Sami Imseih wrote:
> I am still not sure why this is the case, but wanted to share this
> for now.

Hmm.  Something seems to not be compiling well for the final query of
a stmtmulti in gram.y with updateRawStmtEnd(), as we rely on the
position of the semicolon to decide what the stmt_len should be with
multiple querues.  We don't set the stmt_len without the semicolon,
causing pgss to reuse the full query length when storing the entry of
the last query.

With the semicolon in place, stmt_len gets set for the last query of
the string.  Still digging more..
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Dmitry Koval
Date:
Subject: Re: Add SPLIT PARTITION/MERGE PARTITIONS commands
Next
From: Matthew Sterrett
Date:
Subject: Re: Proposal for enabling auto-vectorization for checksum calculations