pg.ddx.io pgsql-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgsql: Fix CREATE DATABASE when template0 has ICU rules. 4+ messages / 1 participants [nested] [flat]
* pgsql: Fix CREATE DATABASE when template0 has ICU rules. @ 2026-11-19 04:04 Jeff Davis <jdavis@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Jeff Davis @ 2026-11-19 04:04 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix CREATE DATABASE when template0 has ICU rules. Most fields, when not specified by the CREATE DATABASE command, are simply copied from the template. But when the template has ICU rules, and the new database uses a different provider (which is only possible with template0), then we should ignore the ICU rules from the template. But after commit 2d819a08a1, it tried to copy the ICU rules, and the command resulted in an error. This commit restores the prior behavior, which ignores the ICU rules from the template if the new provider is not ICU. Author: shihao zhong <zhong950419@gmail.com> Reported-by: Heikki Linnakangas <hlinnaka@iki.fi> Discussion: https://postgr.es/m/c97d5993-5d9f-4f75-97f1-7e69643e37c0@iki.fi Backpatch-through: 17 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/11910736bf19c806ee55ff5d5d801dbb60bbcdce Modified Files -------------- src/backend/commands/dbcommands.c | 2 +- src/test/icu/t/010_database.pl | 44 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix CREATE DATABASE when template0 has ICU rules. @ 2026-11-19 04:04 Jeff Davis <jdavis@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Jeff Davis @ 2026-11-19 04:04 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix CREATE DATABASE when template0 has ICU rules. Most fields, when not specified by the CREATE DATABASE command, are simply copied from the template. But when the template has ICU rules, and the new database uses a different provider (which is only possible with template0), then we should ignore the ICU rules from the template. But after commit 2d819a08a1, it tried to copy the ICU rules, and the command resulted in an error. This commit restores the prior behavior, which ignores the ICU rules from the template if the new provider is not ICU. Author: shihao zhong <zhong950419@gmail.com> Reported-by: Heikki Linnakangas <hlinnaka@iki.fi> Discussion: https://postgr.es/m/c97d5993-5d9f-4f75-97f1-7e69643e37c0@iki.fi Backpatch-through: 17 Branch ------ REL_19_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/a6964b7fc1855d77d6496d7f2394e8be2823f57e Modified Files -------------- src/backend/commands/dbcommands.c | 2 +- src/test/icu/t/010_database.pl | 44 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix CREATE DATABASE when template0 has ICU rules. @ 2026-11-19 04:04 Jeff Davis <jdavis@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Jeff Davis @ 2026-11-19 04:04 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix CREATE DATABASE when template0 has ICU rules. Most fields, when not specified by the CREATE DATABASE command, are simply copied from the template. But when the template has ICU rules, and the new database uses a different provider (which is only possible with template0), then we should ignore the ICU rules from the template. But after commit 2d819a08a1, it tried to copy the ICU rules, and the command resulted in an error. This commit restores the prior behavior, which ignores the ICU rules from the template if the new provider is not ICU. Author: shihao zhong <zhong950419@gmail.com> Reported-by: Heikki Linnakangas <hlinnaka@iki.fi> Discussion: https://postgr.es/m/c97d5993-5d9f-4f75-97f1-7e69643e37c0@iki.fi Backpatch-through: 17 Branch ------ REL_18_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/ede2e7e47c3b0aa384b3f67f3fe3584ca0c57009 Modified Files -------------- src/backend/commands/dbcommands.c | 2 +- src/test/icu/t/010_database.pl | 44 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
* pgsql: Fix CREATE DATABASE when template0 has ICU rules. @ 2026-11-19 04:04 Jeff Davis <jdavis@postgresql.org> 0 siblings, 0 replies; 4+ messages in thread From: Jeff Davis @ 2026-11-19 04:04 UTC (permalink / raw) To: pgsql-committers@lists.postgresql.org Fix CREATE DATABASE when template0 has ICU rules. Most fields, when not specified by the CREATE DATABASE command, are simply copied from the template. But when the template has ICU rules, and the new database uses a different provider (which is only possible with template0), then we should ignore the ICU rules from the template. But after commit 2d819a08a1, it tried to copy the ICU rules, and the command resulted in an error. This commit restores the prior behavior, which ignores the ICU rules from the template if the new provider is not ICU. Author: shihao zhong <zhong950419@gmail.com> Reported-by: Heikki Linnakangas <hlinnaka@iki.fi> Discussion: https://postgr.es/m/c97d5993-5d9f-4f75-97f1-7e69643e37c0@iki.fi Backpatch-through: 17 Branch ------ REL_17_STABLE Details ------- https://git.postgresql.org/pg/commitdiff/d8199a61d0e58a91af5088110388215816aad264 Modified Files -------------- src/backend/commands/dbcommands.c | 2 +- src/test/icu/t/010_database.pl | 44 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) ^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2026-11-19 04:04 UTC | newest] Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-11-19 04:04 pgsql: Fix CREATE DATABASE when template0 has ICU rules. Jeff Davis <jdavis@postgresql.org> 2026-11-19 04:04 pgsql: Fix CREATE DATABASE when template0 has ICU rules. Jeff Davis <jdavis@postgresql.org> 2026-11-19 04:04 pgsql: Fix CREATE DATABASE when template0 has ICU rules. Jeff Davis <jdavis@postgresql.org> 2026-11-19 04:04 pgsql: Fix CREATE DATABASE when template0 has ICU rules. Jeff Davis <jdavis@postgresql.org>
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