summaryrefslogtreecommitdiff
path: root/src/backend/regex/regexec.c
diff options
context:
space:
mode:
authorTom Lane2021-08-19 16:12:35 +0000
committerTom Lane2021-08-19 16:12:35 +0000
commit8d2d6ec7708b475787fd92a9f828e554805e3df6 (patch)
treeb8dd5475b30e83538485d6686232471adfa2a609 /src/backend/regex/regexec.c
parentbed5eac2d50eb86a254861dcdea7b064d10c72cf (diff)
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/[email protected]
Diffstat (limited to 'src/backend/regex/regexec.c')
0 files changed, 0 insertions, 0 deletions