summaryrefslogtreecommitdiff
path: root/contrib/pg_stat_statements/pg_stat_statements.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2024-09-14 11:42:31 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2024-09-14 11:42:40 -0400
commite3b2c651bcd3230674ea4ea31c987474a00a1c98 (patch)
tree944bbe001ddb6c844351a9b7a652a47b89848511 /contrib/pg_stat_statements/pg_stat_statements.c
parent54497e0ed8670f52ceb8dfc5949023a61daeec59 (diff)
Remove obsolete comment in pg_stat_statements.
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
Diffstat (limited to 'contrib/pg_stat_statements/pg_stat_statements.c')
-rw-r--r--contrib/pg_stat_statements/pg_stat_statements.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/contrib/pg_stat_statements/pg_stat_statements.c b/contrib/pg_stat_statements/pg_stat_statements.c
index d4197ae0f7e..12718dfe45c 100644
--- a/contrib/pg_stat_statements/pg_stat_statements.c
+++ b/contrib/pg_stat_statements/pg_stat_statements.c
@@ -887,13 +887,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