pgsql: pg_upgrade: Preserve template0 ICU rules

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_upgrade: Preserve template0 ICU rules
Date: 2026-11-20 10:22:35
Message-ID: E1xULlK-00000000VF2-3SWP@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

pg_upgrade: Preserve template0 ICU rules

Copy template0's daticurules alongside its other locale attributes.
We missed that when daticurules was introduced in v16.

daticurules can be arbitrarily large, so teach executeQueryOrDie() and
logging to grow the buffer if needed.

Author: Bohyun Lee <bohyun(dot)lee(at)databricks(dot)com>
Reviewed-by: Shihao Zhong <zhong950419(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/8c65df31-345e-429c-98fa-867f08d703b6@iki.fi
Backpatch-through: 16

Branch
------
REL_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/ce4e2b60728bc233301b01782e5c191fec6482e4

Modified Files
--------------
src/bin/pg_upgrade/info.c | 21 ++++++++++++++++++---
src/bin/pg_upgrade/pg_upgrade.c | 22 +++++++++++++++++-----
src/bin/pg_upgrade/pg_upgrade.h | 1 +
src/bin/pg_upgrade/server.c | 32 ++++++++++++++++++++++----------
src/bin/pg_upgrade/util.c | 23 +++++++++++++++++++++--
5 files changed, 79 insertions(+), 20 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tomas Vondra 2026-11-20 11:13:36 pgsql: Skip 061_recovery_target_prefetch without posix_fadvise
Previous Message Peter Eisentraut 2026-11-20 10:20:37 pgsql: Fix -Wcast-qual warnings in regex module