pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Richard Guo <guofenglinux@gmail.com>
Cc: zuming.jiang@inf.ethz.ch, David Rowley <dgrowleyml@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #18305: Unexpected error: "WindowFunc not found in subplan target lists" triggered by subqueries
Date: Tue, 23 Jan 2024 08:52:55 -0500
Message-ID: <3968320.1706017975@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMbWs4-fxoO+DoDxNC6AcqOcaNgdVVCKJCsq33Sm3KW8Vt2rNQ@mail.gmail.com>
References: <18305-33c49b4c830b37b3@postgresql.org>
	<3738975.1705938286@sss.pgh.pa.us>
	<CAMbWs4-fxoO+DoDxNC6AcqOcaNgdVVCKJCsq33Sm3KW8Vt2rNQ@mail.gmail.com>

Richard Guo <guofenglinux@gmail.com> writes:
> Hmm, is there a way to detect in find_window_run_conditions() whether
> the WindowFunc's argument references a SubLink node of a subquery that
> hasn't been pulled up?

contain_subplans will recognize both SubLinks and SubPlans,
so there must be some other factor here.  (I didn't look yet.)

			regards, tom lane





view thread (15+ messages)  latest in thread

Message-ID: <3968320.1706017975@sss.pgh.pa.us>
Permalink:  ../3968320.1706017975@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3968320.1706017975@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, guofenglinux@gmail.com, dgrowleyml@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #18305: Unexpected error: "WindowFunc not found in subplan target lists" triggered by subqueries
  In-Reply-To: <3968320.1706017975@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox