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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-bugs by date

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