Tender Wang <tndrwang(at)gmail(dot)com> writes:
> I found a wrong-result case in self-join elimination involving an
> inheritance scan and an ONLY scan.
Pushed, thanks for the report.
(I left out the proposed regression tests, which seemed much too
heavyweight for a one-line change.)
regards, tom lane