Re: [PATCH] Query Jumbling for CALL and SET utility statements
Drouvot, Bertrand <bdrouvot@amazon.com>
From: "Drouvot, Bertrand" <bdrouvot@amazon.com>
To: Michael Paquier <michael@paquier.xyz>, Jeremy Schneider <schnjere@amazon.com>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Pavel Stehule <pavel.stehule@gmail.com>, Andres Freund <andres@anarazel.de>, "Imseih (AWS),
Sami" <simseih@amazon.com>
Date: 2022-09-08T06:49:13Z
Lists: pgsql-hackers
Hi, On 9/8/22 7:23 AM, Michael Paquier wrote: > On Wed, Sep 07, 2022 at 06:19:42PM -0700, Jeremy Schneider wrote: >> I didn't fully debug yet, but here's the backtrace on my 14.4 build with >> the patch Thanks Jeremy for reporting the issue! > What happens on HEAD? That would be the target branch for a new > feature. Just tested and i can see the same issue on HEAD. Issue is on stmt->name being NULL here: Breakpoint 2, JumbleExpr (jstate=0x55d60e769e30, node=0x55d60e769b60) at queryjumble.c:364 364 if (node == NULL) (gdb) n 368 check_stack_depth(); (gdb) 374 APP_JUMB(node->type); (gdb) 376 switch (nodeTag(node)) (gdb) 398 VariableSetStmt *stmt = (VariableSetStmt *) node; (gdb) n 400 APP_JUMB_STRING(stmt->name); (gdb) p stmt->name $1 = 0x0 I'll have a closer look. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services:https://aws.amazon.com
Commits
-
Show values of SET statements as constants in pg_stat_statements
- dc68515968e8 18.0 landed
-
Teach contrib/pg_stat_statements to handle multi-statement commands better.
- 83f2061dd037 10.0 cited