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
This commit is contained in:
Peter Eisentraut 2026-07-09 09:53:18 +02:00
parent df293aed46
commit 51ceb751ea

View 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;
}
}