Re: LIMIT and JOINS

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Gregor Zeitlinger" <gregor(dot)zeitlinger(at)torexretail(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: LIMIT and JOINS
Date: 2006-02-22 15:55:26
Message-ID: 12213.1140623726@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Gregor Zeitlinger" <gregor(dot)zeitlinger(at)torexretail(dot)de> writes:
> select * from T1 join T2 on T1.id =3D T2.id LIMIT 1
>
> Conceptually, it should be possible to fetch one row from T1 and T2, =
> i.e. to propagate the LIMIT clause.
>
> I was wondering what the exact requirements are to propagate the LIMIT =
> clause.

Indexes would help ...

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2006-02-22 16:12:22 Re: windows / initdb oddness
Previous Message Gregor Zeitlinger 2006-02-22 15:41:37 LIMIT and JOINS