git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 76f2a0e)
Remove obsolete comment in pg_stat_statements.
2024年9月14日 15:42:31 +0000 (11:42 -0400)
2024年9月14日 15:42:31 +0000 (11:42 -0400)
Commit 76db9cb63 removed the use of multiple nesting counters,
but missed one comment describing that arrangement.

Back-patch to v17 where 76db9cb63 came in, just to avoid confusion.

Julien Rouhaud

Discussion: https://postgr.es/m/gfcwh3zjxc2vygltapgo7g6yacdor5s4ynr234b6v2ohhuvt7m@gr42joxalenw


diff --git a/contrib/pg_stat_statements/pg_stat_statements.c b/contrib/pg_stat_statements/pg_stat_statements.c
index 362d222f633b51a0ba3dcdd7256ffb6b48e40ff7..3c72e437f73979354c1450767765b1acd462e550 100644 (file)
--- a/contrib/pg_stat_statements/pg_stat_statements.c
+++ b/contrib/pg_stat_statements/pg_stat_statements.c
@@ -886,13 +886,6 @@ pgss_planner(Query *parse,
* We can't process the query if no query_string is provided, as
* pgss_store needs it. We also ignore query without queryid, as it would
* be treated as a utility statement, which may not be the case.
- *
- * Note that planner_hook can be called from the planner itself, so we
- * have a specific nesting level for the planner. However, utility
- * commands containing optimizable statements can also call the planner,
- * same for regular DML (for instance for underlying foreign key queries).
- * So testing the planner nesting level only is not enough to detect real
- * top level planner call.
*/
if (pgss_enabled(nesting_level)
&& pgss_track_planning && query_string
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /