aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistvalidate.c
diff options
context:
space:
mode:
authorNathan Bossart <nathan@postgresql.org>2023-05-03 11:32:43 -0700
committerNathan Bossart <nathan@postgresql.org>2023-05-04 16:23:05 -0700
commit57d0051706b897048063acc14c2c3454200c488f (patch)
tree9da541983af162efd31c1a48e2be730a17e8d4fd /src/backend/access/gist/gistvalidate.c
parentf75cec4fff877ef24e4932a628fc974f3116ed16 (diff)
downloadpostgresql-57d0051706b897048063acc14c2c3454200c488f.tar.gz
postgresql-57d0051706b897048063acc14c2c3454200c488f.zip
Move return statements out of PG_TRY blocks.
If we exit a PG_TRY block early via "continue", "break", "goto", or "return", we'll skip unwinding its exception stack. This change moves a couple of such "return" statements in PL/Python out of PG_TRY blocks. This was introduced in d0aa965c0a and affects all supported versions. We might also be able to add compile-time checks to prevent recurrence, but that is left as a future exercise. Reported-by: Mikhail Gribkov, Xing Guo Author: Xing Guo Reviewed-by: Michael Paquier, Andres Freund, Tom Lane Discussion: https://postgr.es/m/CAMEv5_v5Y%2B-D%3DCO1%2Bqoe16sAmgC4sbbQjz%2BUtcHmB6zcgS%2B5Ew%40mail.gmail.com Discussion: https://postgr.es/m/CACpMh%2BCMsGMRKFzFMm3bYTzQmMU5nfEEoEDU2apJcc4hid36AQ%40mail.gmail.com Backpatch-through: 11 (all supported versions)
Diffstat (limited to 'src/backend/access/gist/gistvalidate.c')
0 files changed, 0 insertions, 0 deletions