On Fri, 2023-02-17 at 09:05 -0800, Andres Freund wrote: > > Thinking about this more, it's not clear to me if this would be in > > scope for pg_upgrade or not. > > I don't think we should consider changing the default collation > provider > without making this more seamless, one way or another.
I guess I'm fine hacking pg_upgrade, but I think I'd like to make it conditional on this specific case: only perform the fixup if the old cluster is 15 or earlier and using libc and the newer cluster is 16 or later and using icu. There's already a check that the new cluster is empty, so I think it's safe to hack the pg_database locale fields. Regards, Jeff Davis >