From: | Oleg Broytmann <phd(at)sun(dot)med(dot)ru> |
---|---|
To: | "Jackson, DeJuan" <djackson(at)cpsgroup(dot)com> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | RE: [HACKERS] Bug on complex subselect (was: Bug on complex join) |
Date: | 1999-03-11 18:00:54 |
Message-ID: | Pine.SOL2.3.96.SK.990311210016.16339A-100000@sun.med.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Hi!
On Thu, 11 Mar 1999, Jackson, DeJuan wrote:
> > > Make sure you have indexes on pos_id, shop_id, distr_id,
> > and city_id.
> >
> > All these are primary keys in corresponding tables, and hence have
> > UNIQUE indicies. Is it enough?
> >
> > Oleg.
> You should have indexes on both the primary and the referenced table.
> (i.e. positions.pos_id and central.pos_id) It gives PostgreSQL more
> options on which join methods to use while still having an index to
> reference.
Understand.
Thank you.
>
> -DEJ
>
Oleg.
----
Oleg Broytmann http://members.xoom.com/phd2/ phd2(at)earthling(dot)net
Programmers don't die, they just GOSUB without RETURN.
From | Date | Subject | |
---|---|---|---|
Next Message | Bruce Momjian | 1999-03-11 18:06:00 | Re: [HACKERS] Compiling PostgreSQL on SINIX |
Previous Message | Jackson, DeJuan | 1999-03-11 18:00:32 | RE: [HACKERS] Bug on complex subselect (was: Bug on complex join) |