Re: joins - Mailing list pgsql-admin

From Bruno Wolff III
Subject Re: joins
Date
Msg-id 20021106010140.GA5458@wolff.to
Whole thread Raw
In response to joins  (Jodi Kanter <jkanter@virginia.edu>)
List pgsql-admin
On Mon, Nov 04, 2002 at 14:37:42 -0500,
  Jodi Kanter <jkanter@virginia.edu> wrote:
> Can anyone tell me if there is any real difference between the two different ways to create tables joins?
>
> select field1, field2 from table1 join table2 using (field3)
>
> vs.
>
> select field1, field2 from table1, table 2 where table1.field3=table2.field3

The first form fixes the join order while the second allows the planner to
choose what order to do the joins in. For just two tables this doesn't
make a difference.

pgsql-admin by date:

Previous
From: Murthy Kambhampaty
Date:
Subject: Re: Bug in psql's "-R" option?
Next
From: "Michiel Lange"
Date:
Subject: Re: Linux system panic