aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/nodeModifyTable.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2023-04-18 13:31:31 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2023-04-18 13:31:46 -0400
commitb124104e73c0e91714969e1ae24d661264c76b96 (patch)
treef66c65afda22113a1ef851e0817c2b5433f7b416 /src/backend/executor/nodeModifyTable.c
parent363e8f9115469fe3d30a80b694cd60e9db3b2537 (diff)
downloadpostgresql-b124104e73c0e91714969e1ae24d661264c76b96.tar.gz
postgresql-b124104e73c0e91714969e1ae24d661264c76b96.zip
Fix Utils.pm's locale-munging so that Perl itself is also affected.
Utils.pm has a BEGIN block that editorializes on the locale-related environment variables, primarily in order to stabilize the behavior of child programs. It turns out that if the calling test script has already done "use locale", this fails to affect the behavior of Perl itself, causing locale behavior to be different between Perl and child programs. That breaks commit cd82e5c79's attempt to deal with locale-specific behavior in psql. To fix, we just need to call setlocale() to redo the calculation of locale. Per report from Aleksander Alekseev. No back-patch for now, since there are no locale-dependent TAP tests in prior branches, and I'm not yet convinced that this won't have side-effects of its own. Discussion: https://postgr.es/m/CAJ7c6TO9KpYYxoVVseWEQB5KtjWDkt8NfyAeKPcHoe2Jq+ykpw@mail.gmail.com
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions