From: Peter Eisentraut Date: Thu, 9 Jul 2026 07:53:18 +0000 (+0200) Subject: Fix outdated comment X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=51ceb751eaed32950013a8084dd2ae2bf3ce465d;p=thirdparty%2Fpostgresql.git Fix outdated comment In transformLockingClause(), there was a comment that listed all the RTE kinds it did not want to process, but that list was already outdated about what RTE kinds actually exist. Rather than keeping that up-to-date, just say "all other". Discussion: https://www.postgresql.org/message-id/flat/CAHg%2BQDcE9wp6nOEC3SCRQ90nrCO%3DQF%2BOZq1MG8Qc6hnusmogqw%40mail.gmail.com --- diff --git a/src/backend/parser/analyze.c b/src/backend/parser/analyze.c index 2932d17a107..739ea13d5db 100644 --- a/src/backend/parser/analyze.c +++ b/src/backend/parser/analyze.c @@ -3867,7 +3867,7 @@ transformLockingClause(ParseState *pstate, Query *qry, LockingClause *lc, allrels, true); break; default: - /* ignore JOIN, SPECIAL, FUNCTION, VALUES, CTE RTEs */ + /* ignore all other RTE kinds */ break; } }