pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@lists.postgresql.org
Subject: Re: Possible bug: SQL function parameter in window frame definition
Date: Wed, 02 Oct 2019 17:20:11 +0100
Message-ID: <8736gb2kct.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <6666.1570030371@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>
	<877e5n2n70.fsf@news-spur.riddles.org.uk>
	<6666.1570030371@sss.pgh.pa.us>

>>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:

 Tom> Hm. transformRuleStmt already does special-case utility statements
 Tom> to some extent, so my inclination would be to make it do more of
 Tom> that. However, it looks like that might end up with rather
 Tom> spaghetti-ish code, as that function is kind of messy already.

 Tom> Or we could abandon the notion of adding the assertion. I don't
 Tom> know how much work it's worth.

Fixing transformRuleStmt just pushes the issue along another step:
InsertRule wants to do recordDependencyOnExpr on the rule actions,
which just does find_expr_references_walker.

I'm going to leave the assertion out for now and put in a comment for
future reference.

-- 
Andrew (irc:RhodiumToad)





view thread (18+ messages)  latest in thread

Message-ID: <8736gb2kct.fsf@news-spur.riddles.org.uk>
Permalink:  ../8736gb2kct.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/8736gb2kct.fsf@news-spur.riddles.org.uk

 · 

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 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, pgsql-hackers@lists.postgresql.org
  Subject: Re: Possible bug: SQL function parameter in window frame definition
  In-Reply-To: <8736gb2kct.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> <877e5n2n70.fsf@news-spur.riddles.org.uk> <6666.1570030371@sss.pgh.pa.us> <8736gb2kct.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