aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/ruleutils.c
diff options
context:
space:
mode:
authorJeff Davis <jdavis@postgresql.org>2024-09-05 12:10:08 -0700
committerJeff Davis <jdavis@postgresql.org>2024-09-05 12:10:08 -0700
commit7829f85a6285b3703a53ba5963a4df2e768014df (patch)
tree9a0f4c20c689106c1e6fadf7c03ac293630d1ad4 /src/backend/utils/adt/ruleutils.c
parentfadff3fc94598db1d87e4242821964fb2850e19e (diff)
downloadpostgresql-7829f85a6285b3703a53ba5963a4df2e768014df.tar.gz
postgresql-7829f85a6285b3703a53ba5963a4df2e768014df.zip
Be more careful with error paths in pg_set_regex_collation().
Set global variables after error paths so that they don't end up in an inconsistent state. The inconsistent state doesn't lead to an actual problem, because after an error, pg_set_regex_collation() will be called again before the globals are accessed. Change extracted from patch by Andreas Karlsson, though not discussed explicitly. Discussion: https://postgr.es/m/60929555-4709-40a7-b136-bcb44cff5a3c@proxel.se
Diffstat (limited to 'src/backend/utils/adt/ruleutils.c')
0 files changed, 0 insertions, 0 deletions