]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix outdated comment
authorPeter Eisentraut <peter@eisentraut.org>
Thu, 9 Jul 2026 07:53:18 +0000 (09:53 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Thu, 9 Jul 2026 07:53:18 +0000 (09:53 +0200)
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

src/backend/parser/analyze.c

index 2932d17a107b89bafdcc923462a64b41aaf6c27e..739ea13d5db01c21631deaf99e21203c6c7f117e 100644 (file)
@@ -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;
                        }
                }