Robert Haas <robertmhaas@gmail.com> writes:
> And there is
> code in RelationClearRelation to avoid changing rd_partkey and
> rd_partdesc if no logical change has occurred.
Oh, and by the way, what's actually in there is
keep_partkey = (relation->rd_partkey != NULL);
I would be interested to see an explanation of why that isn't utterly
broken.
regards, tom lane