Re: Regression in statement locations

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Regression in statement locations
Дата
Msg-id aCvBB88wk4TWdKfO@paquier.xyz
обсуждение исходный текст
Ответ на Re: Regression in statement locations  (Sami Imseih <samimseih@gmail.com>)
Ответы Re: Regression in statement locations
Список 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

Вложения

В списке pgsql-hackers по дате отправления: