Re: Bogus logic in RelationBuildPartitionDesc

2019-12-23 Thread Robert Haas
On Sat, Dec 21, 2019 at 10:28 AM Tom Lane wrote: > I just had to retrieve my jaw from the floor after reading this > bit in RelationBuildPartitionDesc: > > * The system cache may be out of date; if so, we may find no pg_class > * tuple or an old one where relpartbound is NULL. I

Bogus logic in RelationBuildPartitionDesc

2019-12-21 Thread Tom Lane
I just had to retrieve my jaw from the floor after reading this bit in RelationBuildPartitionDesc: * The system cache may be out of date; if so, we may find no pg_class * tuple or an old one where relpartbound is NULL. In that case, try * the table directly. We can't j