aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistbuildbuffers.c
diff options
context:
space:
mode:
authorJeff Davis <jdavis@postgresql.org>2023-03-09 08:28:05 -0800
committerJeff Davis <jdavis@postgresql.org>2023-03-09 08:28:05 -0800
commit9637badd9f9209166140eb567602e91699dd2ffb (patch)
tree2d46a9b14c83d5b163dbd82eb8fe8fe9e341cd7c /src/backend/access/gist/gistbuildbuffers.c
parent8dff2f224f4f49ddd4f45f590e7f46b160a4951b (diff)
downloadpostgresql-9637badd9f9209166140eb567602e91699dd2ffb.tar.gz
postgresql-9637badd9f9209166140eb567602e91699dd2ffb.zip
pg_upgrade: copy locale and encoding information to new cluster.
Previously, pg_upgrade checked that the old and new clusters were compatible, including the locale and encoding. But the new cluster was just created, and only template0 from the new cluster will be preserved (template1 and postgres are both recreated during the upgrade process). Because template0 is not sensitive to locale or encoding, just update the pg_database entry to be the same as template0 from the original cluster. This commit makes it easier to change the default initdb locale or encoding settings without causing needless incompatibilities. Discussion: https://postgr.es/m/d62b2874-729b-d26a-2d0a-0d64f509eca4@enterprisedb.com Reviewed-by: Peter Eisentraut
Diffstat (limited to 'src/backend/access/gist/gistbuildbuffers.c')
0 files changed, 0 insertions, 0 deletions