diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2021-08-19 12:12:35 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2021-08-19 12:12:35 -0400 |
commit | fbc1eed8a8dd3178de70de53a0e95786c80f9dbc (patch) | |
tree | 7f59fa6ccc3e28019d3f7d950a7c044ea4a32f87 /src/backend/regex | |
parent | a65319f093a61cecda7e27f94521704855861046 (diff) | |
download | postgresql-fbc1eed8a8dd3178de70de53a0e95786c80f9dbc.tar.gz postgresql-fbc1eed8a8dd3178de70de53a0e95786c80f9dbc.zip |
Avoid trying to lock OLD/NEW in a rule with FOR UPDATE.
transformLockingClause neglected to exclude the pseudo-RTEs for
OLD/NEW when processing a rule's query. This led to odd errors
or even crashes later on. This bug is very ancient, but it's
not terribly surprising that nobody noticed, since the use-case
for SELECT FOR UPDATE in a non-view rule is somewhere between
thin and non-existent. Still, crashing is not OK.
Per bug #17151 from Zhiyong Wu. Thanks to Masahiko Sawada
for analysis of the problem.
Discussion: https://postgr.es/m/17151-c03a3e6e4ec9aadb@postgresql.org
Diffstat (limited to 'src/backend/regex')
0 files changed, 0 insertions, 0 deletions