Re: Fwd: pg18 bug? SELECT query doesn't work - Mailing list pgsql-hackers

From Richard Guo
Subject Re: Fwd: pg18 bug? SELECT query doesn't work
Date
Msg-id CAMbWs48kk-f=7fCP5cCksZpc9n10CJEoe-edOoQfwMR6x0KNng@mail.gmail.com
Whole thread Raw
In response to Re: Fwd: pg18 bug? SELECT query doesn't work  (Richard Guo <guofenglinux@gmail.com>)
List pgsql-hackers
On Thu, Jan 8, 2026 at 10:30 PM Richard Guo <guofenglinux@gmail.com> wrote:
> How about we add a comment to check_output_expressions() along the
> below lines?

I've worked on the comment a bit more in the attached patch, which
also includes my previously proposed code changes and some test cases.

I think this patch is suitable for fixing the current bug in the back
branches.  We can use a separate patch for the more ambitious goal of
moving the push-down of subquery's restriction clauses into
subquery_planner().

Any thoughts?

- Richard

Attachment

pgsql-hackers by date:

Previous
From: Chao Li
Date:
Subject: Re: GIN pageinspect support for entry tree and posting tree
Next
From: Fujii Masao
Date:
Subject: Re: file_fdw: Support multi-line HEADER option.