Re: Set query_id for query contained in utility statement
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Anthonin Bonnefoy <anthonin.bonnefoy@datadoghq.com>
Cc: jian he <jian.universality@gmail.com>, PostgreSQL Hackers <pgsql-hackers@postgresql.org>
Date: 2024-10-18T06:27:29Z
Lists: pgsql-hackers
On Tue, Oct 15, 2024 at 10:11:40AM +0200, Anthonin Bonnefoy wrote: > I've updated the patchset with additional tests for COPY in 0001. 0002 > includes the necessary modifications to handle COPY. Beginning with the beginning of this patch series. +SELECT toplevel, calls, query FROM pg_stat_statements + ORDER BY toplevel desc, query COLLATE "C"; In v8-0001, for the tests that want to track the queries showing up, could it be better to adjust the ORDER BY to be (query, toplevel, calls), making the query string first? This way, it is possible to see which are the doublons of queries showing up for toplevel as true and false depending on the utility. -- Michael
Commits
-
Set query ID for inner queries of CREATE TABLE AS and DECLARE
- 6b652e6ce85a 18.0 landed
-
Track more precisely query locations for nested statements
- 499edb09741b 18.0 landed
-
pg_stat_statements: Add tests for nested queries with level tracking
- 45e0ba30fc40 18.0 landed
-
Fix race condition in COMMIT PREPARED causing orphaned 2PC files
- cf4401fe6cf5 18.0 cited