pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Davidson, Robert <robdavid@amazon.com>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-bugs@postgresql.org
Subject: Re: [SQL] Function Parameters in GROUP BY clause cause errors
Date: Wed, 22 Mar 2006 23:27:11 -0500
Message-ID: <2742.1143088031@sss.pgh.pa.us> (raw)
In-Reply-To: <20117.1143064428@sss.pgh.pa.us>
References: <8333C841129E074E9F83FC80676BA76E0BF08D@exchg-sea3-03.ant.amazon.com>
	<20117.1143064428@sss.pgh.pa.us>

I wrote:
> Hmm, this seems like a plpgsql deficiency.  It feels it can generate a
> separate parameter symbol ($n) for each occurrence of each variable it
> passes into a SQL query.  But for this query to be legal, the two
> instances of IntervalMinutes have to be represented by the *same*
> parameter symbol (notice they are not in the regurgitated query).

> It would be more efficient anyway to not generate multiple parameters
> for the same value, so we oughta fix this.

Patch applied to HEAD and 8.1 branches.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <2742.1143088031@sss.pgh.pa.us>
Permalink:  ../2742.1143088031@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/2742.1143088031@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-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, robdavid@amazon.com, pgsql-bugs@postgresql.org
  Subject: Re: [SQL] Function Parameters in GROUP BY clause cause errors
  In-Reply-To: <2742.1143088031@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