Fix assertion failure in CREATE DATABASE

Peter Eisentraut <peter@eisentraut.org>

Commit: 36f729e2bc3539e777cda698dc441b8ccec42142
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2022-08-22T13:38:41Z
Releases: 16.0
Fix assertion failure in CREATE DATABASE

An assertion would fail when creating a database with libc locale
provider from a template database with icu locale provider.

Reported-by: Marina Polyakova <m.polyakova@postgrespro.ru>
Reviewed-by: Julien Rouhaud <rjuju123@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/f385ba25e7f8be427b8c582e5cca7d79%40postgrespro.ru#515a31c5429d6d37ad1d5c9d66962a1e

Files

PathChange+/−
src/backend/commands/dbcommands.c modified +2 −2
src/bin/scripts/t/020_createdb.pl modified +9 −0

Discussion

Cited messages not in the archive: f385ba25e7f8be427b8c582e5cca7d79@postgrespro.ru#515a31c5429d6d37ad1d5c9d66962a1e