Re: Bogus collation version recording in recordMultipleDependencies
Julien Rouhaud <rjuju123@gmail.com>
From: Julien Rouhaud <rjuju123@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Date: 2021-04-15T10:56:47Z
Lists: pgsql-hackers
On Wed, Apr 14, 2021 at 01:18:07PM -0400, Tom Lane wrote: > > One question here is whether it's correct that the domain's dependency > on collation "aa_DJ" is unversioned. Maybe that's intentional, but it > seems worth asking. This is intentional I think, we should record collation version only for object that might break if the collation version is updated. So creating an index on that domain would record the collation version. > Anyway, there are two pretty obvious bugs in the dependencies for the > domain's CHECK constraint: the version for collation mycoll leaks > into the entry for function foo, and an entirely useless (because > unversioned) dependency is recorded on the default collation. Agreed. > (To be clear: 0002 passes check-world as-is, while 0001 is not > committable without some regression-test fiddling.) I'm probably missing something obvious but both 0001 and 0002 pass check-world for me, on a glibc box and --with-icu. > Thoughts? I think this is an open item, so I added one for now.
Commits
-
Doc: Update notes about libc collation versions.
- b65431ca5e12 14.0 landed
-
Revert per-index collation version tracking feature.
- ec4831470826 14.0 landed
-
Rethink extraction of collation dependencies.
- f24b15699705 14.0 landed
-
Fix bogus collation-version-recording logic.
- ef387bed87f2 14.0 landed
-
Rename the "point is strictly above/below point" comparison operators.
- 0cc993278888 14.0 cited
-
Move catalog toast table declarations
- b4c9695e79f7 14.0 cited