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

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 (view raw or flat)
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

pgsql-hackers by date

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

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