]> granicus.if.org Git - postgresql/commit
Fix bogus logic for skipping unnecessary partcollation dependencies.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 13 Dec 2018 20:11:09 +0000 (15:11 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 13 Dec 2018 20:11:24 +0000 (15:11 -0500)
commit8b90174e3f0638ff542bef7f367429750d18b08c
tree774da5e7909a5552208dc0b2f5043c0a61746928
parenta0696d29551bf3cb5dbd2b72f89aed0bbf0dcab3
Fix bogus logic for skipping unnecessary partcollation dependencies.

The idea here is to not call recordDependencyOn for the default collation,
since we know that's pinned.  But what the code actually did was to record
the partition key's dependency on the opclass twice, instead.

Evidently introduced by sloppy coding in commit 2186b608b.  Back-patch
to v10 where that came in.
src/backend/catalog/heap.c