Re: Collation versioning
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Christoph Berg <myon@debian.org>,
Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2019-10-15T04:39:16Z
Lists: pgsql-hackers
Attachments
- 0001-Use-libc-version-as-a-collation-version-on-glibc--v3.patch (application/octet-stream) patch v3-0001
On Fri, Oct 11, 2019 at 11:41 PM Thomas Munro <thomas.munro@gmail.com> wrote: > On Thu, Oct 10, 2019 at 8:38 AM Peter Eisentraut > <peter.eisentraut@2ndquadrant.com> wrote: > > Actually, I had to revert that because pg_dump and pg_upgrade tests need > > to be updated, but that seems doable. > > [Returning from a couple of weeks mostly away from computers] > > Right, sorry about that. Here is a new version that fixes that test, > and also gives credit to Christoph for the idea in the commit message. Here's a version with a small note added to the documentation. I'm planning to commit this tomorrow. To actually make this useful for most users, we need version tracking for the default collation. I noticed that the ICU-as-default patch[1] can do that for ICU collations (though I haven't looked closely yet). Currently, its change to get_collation_actual_version() for the default collation applies only when the default provider is ICU, but if you just take out that condition when rebasing it should do the right thing, I think? [1] https://www.postgresql.org/message-id/attachment/104646/v1-0002-Add-option-to-use-ICU-as-global-collation-provide_rebased.patch
Commits
-
Doc: Document known problem with Windows collation versions.
- 1bf946bd43e5 14.0 landed
-
Add collation versions for FreeBSD.
- ca051d8b101d 14.0 landed
-
Tolerate version lookup failure for old style Windows locale names.
- 9f12a3b95dd5 14.0 landed
-
Track collation versions for indexes.
- 257836a75585 14.0 landed
-
Add pg_depend.refobjversion.
- cd6f479e79f3 14.0 landed
-
Remove pg_collation.collversion.
- 7d1297df0830 14.0 landed
-
Fix the MSVC build for versions 2015 and later.
- a169155453e3 13.0 cited
-
Add collation versions for Windows.
- 352f6f2df60f 13.0 cited
-
Implement type regcollation
- a2b1faa0f279 13.0 landed
-
Use libc version as a collation version on glibc systems.
- d5ac14f9ccdd 13.0 landed
- 9f90b1d08d79 13.0 landed
-
Make type "name" collation-aware.
- 586b98fdf1aa 12.0 cited