Skip site navigation (1) Skip section navigation (2)

Re: subquery results bypassed

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: woody+postgresqlbugs(at)switchonline(dot)com(dot)au, pgsql-bugs(at)postgresql(dot)org
Subject: Re: subquery results bypassed
Date: 2001-07-31 03:50:47
Message-ID: 4426.996551447@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
pgsql-bugs(at)postgresql(dot)org writes:
> [ SELECT DISTINCT ON in a subquery-in-FROM misbehaves ]

Oooh, good catch!  I had thought about pushing down quals into a SELECT
DISTINCT, and concluded it was OK because the qual would eliminate all
or none of a set of not-DISTINCT rows.  But I forgot about DISTINCT ON
:-(.

Will have a source patch for this tomorrow, if that helps.

			regards, tom lane

In response to

pgsql-bugs by date

Next:From: Trevin ChowDate: 2001-07-31 07:58:07
Subject: v7.0.2: can't use 'EXTRACT(EPOCH FROM'
Previous:From: pgsql-bugsDate: 2001-07-31 02:57:20
Subject: subquery results bypassed

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group