pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_upgrade: Preserve template0 ICU rules
Date: Fri, 20 Nov 2026 10:22:35 +0000
Message-ID: <E1xULlK-00000000VEh-2NyD@gemulon.postgresql.org> (raw)

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.lee@databricks.com>
Reviewed-by: Shihao Zhong <zhong950419@gmail.com>
Discussion: https://www.postgresql.org/message-id/8c65df31-345e-429c-98fa-867f08d703b6@iki.fi
Backpatch-through: 16

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/32dd742b075e999fa358570bc13778b93f8025d4

Modified Files
--------------
src/bin/pg_upgrade/info.c       | 22 +++++++++++++++++++---
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, 80 insertions(+), 20 deletions(-)



view thread (5+ messages)  latest in thread

Message-ID: <E1xULlK-00000000VEh-2NyD@gemulon.postgresql.org>
Permalink:  ../E1xULlK-00000000VEh-2NyD@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xULlK-00000000VEh-2NyD@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: pg_upgrade: Preserve template0 ICU rules
  In-Reply-To: <E1xULlK-00000000VEh-2NyD@gemulon.postgresql.org>
  References: <E1xULlK-00000000VEh-2NyD@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox