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 <[email protected]>
Reviewed-by: Shihao Zhong <[email protected]>
Discussion: 
https://www.postgresql.org/message-id/[email protected]
Backpatch-through: 16

Branch
------
REL_17_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/3252e7bdf95a55b6ff7d353b02f8480827f82b37

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(-)

Reply via email to