aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/syscat.source
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-04-03 11:24:56 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2020-04-03 11:24:56 -0400
commitd56657c35d9cd442438754c68b9aaa30e6720cc4 (patch)
tree61a84148e79d46a5b0750b266e49c732c7dc58c9 /src/tutorial/syscat.source
parentbc96699b8f8d7ab4c91dbd15c53fbf9635bfee8b (diff)
downloadpostgresql-d56657c35d9cd442438754c68b9aaa30e6720cc4.tar.gz
postgresql-d56657c35d9cd442438754c68b9aaa30e6720cc4.zip
Fix bogus CALLED_AS_TRIGGER() defenses.
contrib/lo's lo_manage() thought it could use trigdata->tg_trigger->tgname in its error message about not being called as a trigger. That naturally led to a core dump. unique_key_recheck() figured it could Assert that fcinfo->context is a TriggerData node in advance of having checked that it's being called as a trigger. That's harmless in production builds, and perhaps not that easy to reach in any case, but it's logically wrong. The first of these per bug #16340 from William Crowell; the second from manual inspection of other CALLED_AS_TRIGGER call sites. Back-patch the lo.c change to all supported branches, the other to v10 where the thinko crept in. Discussion: https://postgr.es/m/16340-591c7449dc7c8c47@postgresql.org
Diffstat (limited to 'src/tutorial/syscat.source')
0 files changed, 0 insertions, 0 deletions