Re: [HACKERS] LIMIT and UNION

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Chris Bitmead <chris(at)tech(dot)com(dot)au>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] LIMIT and UNION
Date: 1999-07-03 16:24:46
Message-ID: 16150.931019086@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Chris Bitmead <chris(at)tech(dot)com(dot)au> writes:
> Is it a known problem that LIMIT doesn't work with UNION, or have I
> discovered a bug?

Not sure, but I think the LIMIT would be parsed as an attribute of
one or the other of the sub-selects, not as a limit on the total
result size. This is probably not the behavior you want :-(

regards, tom lane

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-07-03 16:38:30 Re: [HACKERS] LIMIT and UNION
Previous Message Chris Bitmead 1999-07-03 14:08:30 LIMIT and UNION