pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Davidson, Robert <robdavid@amazon.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Cc: pgsql-bugs@postgresql.org
Subject: Re: [SQL] Function Parameters in GROUP BY clause cause errors
Date: Thu, 23 Mar 2006 05:30:28 -0800
Message-ID: <8333C841129E074E9F83FC80676BA76E405230@exchg-sea3-03.ant.amazon.com> (raw)

How amazing is that? I call it a night and come back to find that a bug has been identified and patched while I sleep.

When will it appear in the binaries (I see that the release version is still 8.1.3)? I thought about trying to compile from source, but after looking at the mingw page was too intimidated by figuring out what to download to try compiling source.

Best Regards,

Robert Davidson

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us] 
Sent: Wednesday, March 22, 2006 8:27 PM
To: Davidson, Robert
Cc: pgsql-sql@postgresql.org; pgsql-bugs@postgresql.org
Subject: Re: [SQL] Function Parameters in GROUP BY clause cause errors 

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)

Message-ID: <8333C841129E074E9F83FC80676BA76E405230@exchg-sea3-03.ant.amazon.com>
Permalink:  ../8333C841129E074E9F83FC80676BA76E405230@exchg-sea3-03.ant.amazon.com/
Also on:    postgresql.org/message-id/8333C841129E074E9F83FC80676BA76E405230@exchg-sea3-03.ant.amazon.com

 · 

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-sql@postgresql.org
  Cc: robdavid@amazon.com, tgl@sss.pgh.pa.us, pgsql-bugs@postgresql.org
  Subject: Re: [SQL] Function Parameters in GROUP BY clause cause errors
  In-Reply-To: <8333C841129E074E9F83FC80676BA76E405230@exchg-sea3-03.ant.amazon.com>
  References: <8333C841129E074E9F83FC80676BA76E405230@exchg-sea3-03.ant.amazon.com>

* 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