Fix bogus logic for skipping unnecessary partcollation dependencies.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 171cae1579124a400e234f89c1fc80f3caed5f68
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2018-12-13T20:11:16Z
Releases: 11.2
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.

Files

PathChange+/−
src/backend/catalog/heap.c modified +3 −3