Re: Collation versioning
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: Julien Rouhaud <rjuju123@gmail.com>
Cc: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>,
Robert Haas <robertmhaas@gmail.com>, Michael Paquier <michael@paquier.xyz>,
Laurenz Albe <laurenz.albe@cybertec.at>, Douglas Doole <dougdoole@gmail.com>, Christoph Berg <myon@debian.org>, Pg Hackers <pgsql-hackers@postgresql.org>
Date: 2020-03-11T03:13:17Z
Lists: pgsql-hackers
Attachments
- 0001-Remove-pg_collation.collversion-v13.patch (text/x-patch) patch v13-0001
- 0002-Add-pg_depend.refobjversion-v13.patch (text/x-patch) patch v13-0002
- 0003-Implement-type-regcollation-v13.patch (text/x-patch) patch v13-0003
- 0004-Track-collation-versions-for-indexes-v13.patch (text/x-patch) patch v13-0004
- 0005-Preserve-index-dependencies-on-collation-during--v13.patch (text/x-patch) patch v13-0005
- 0006-Add-ALTER-INDEX-.-ALTER-COLLATION-.-REFRESH-VERS-v13.patch (text/x-patch) patch v13-0006
- 0007-doc-Add-Collation-Versions-section-v13.patch (text/x-patch) patch v13-0007
On Wed, Mar 4, 2020 at 10:01 PM Julien Rouhaud <rjuju123@gmail.com> wrote: > On Thu, Feb 27, 2020 at 08:45:35AM +0100, Julien Rouhaud wrote: > > On Thu, Feb 27, 2020 at 04:10:14PM +1300, Thomas Munro wrote: > > > On Thu, Feb 27, 2020 at 3:29 AM Julien Rouhaud <rjuju123@gmail.com> wrote: > > > > [v10] > > [...] > > > > Fixed in v11 by changing pg_collation_actual_version() to handle default > > collation too, as it seems a better behavior. > > Rebased v12 due to conflict with the recent command tag commit (2f9661311b), no > other changes. I'm still reviewing and testing the code, but here's a new patch set with a bunch of small changes to documentation, tests and commit messages: 0001-Remove-pg_collation.collversion-v13.patch * removed ALTER COLLATION ... REFRESH VERSION from the docs * removed ALTER COLLATION ... REFRESH VERSION from collate.linux.utf8.sql (oops, that wasn't running on my FreeBSD system, or on cfbot's Ubuntu image because it doesn't have "locales-all" installed; I will make a note to fix that on cfbot) 0002-Add-pg_depend.refobjversion-v13.patch * added new column to the documentation of the pg_depend catalog 0003-Implement-type-regcollation-v13.patch * added regcollation to a list of such types in datatype.sgml 0004-Track-collation-versions-for-indexes-v13.patch * added a note to the documentation's list of reasons why REINDEX might be needed 0005-Preserve-index-dependencies-on-collation-during--v13.patch * minor rewording of the docs, I hope you like it 0006-Add-ALTER-INDEX-.-ALTER-COLLATION-.-REFRESH-VERS-v13.patch * minor rewording of the docs, I hope you like it 0007-doc-Add-Collation-Versions-section-v13.patch * new: a brief introduction to this topic
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