From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Alastair McKinley <a.mckinley@analyticsengines.com>
Cc: pgsql-general\@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Possible bug: SQL function parameter in window frame definition
Date: Mon, 30 Sep 2019 06:37:48 +0100
Message-ID: <87a7ammkaj.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <28299.1569780931@sss.pgh.pa.us>
References: <DB6PR0202MB2904E7FDDA9D81504D1E8C68E3800@DB6PR0202MB2904.eurprd02.prod.outlook.com>
<87tv8wmn1i.fsf@news-spur.riddles.org.uk>
<32758.1569703063@sss.pgh.pa.us>
<87mueom8km.fsf@news-spur.riddles.org.uk>
<26051.1569712242@sss.pgh.pa.us>
<87impbn2d4.fsf@news-spur.riddles.org.uk>
<87eezzmls2.fsf@news-spur.riddles.org.uk>
<28299.1569780931@sss.pgh.pa.us>
>>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:
>> Here is a draft patch along those lines; the intent of this one is
>> that no existing walker or mutator should need to change (the change
>> to the dependency code is basically cosmetic I believe, just avoids
>> walking some things twice).
Tom> Hmm. I think this is a reasonable direction to go in, but
Tom> what about groupingSets and rowMarks?
groupingSets ultimately contains nothing but numbers which are
meaningless without reference to the matching groupClause list. So
anything that cares about those is really going to have to process them
in its Query case in the walker function in order to get at both
clauses.
Similarly, rowMarks contains indexes into the rangetable (and no
recursive substructure at all), so it's likewise better processed at the
Query level.
Tom> Also, in HEAD I'd be inclined to add assertions about utilityStmt
Tom> being NULL.
Yup.
--
Andrew (irc:RhodiumToad)
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: andrew@tao11.riddles.org.uk, tgl@sss.pgh.pa.us, a.mckinley@analyticsengines.com
Subject: Re: Possible bug: SQL function parameter in window frame definition
In-Reply-To: <87a7ammkaj.fsf@news-spur.riddles.org.uk>
References: <DB6PR0202MB2904E7FDDA9D81504D1E8C68E3800@DB6PR0202MB2904.eurprd02.prod.outlook.com> <87tv8wmn1i.fsf@news-spur.riddles.org.uk> <32758.1569703063@sss.pgh.pa.us> <87mueom8km.fsf@news-spur.riddles.org.uk> <26051.1569712242@sss.pgh.pa.us> <87impbn2d4.fsf@news-spur.riddles.org.uk> <87eezzmls2.fsf@news-spur.riddles.org.uk> <28299.1569780931@sss.pgh.pa.us> <87a7ammkaj.fsf@news-spur.riddles.org.uk>
* 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