Re: Join efficiency - Mailing list pgsql-general

From Michael Paesold
Subject Re: Join efficiency
Date
Msg-id 018a01c4902e$fc6158b0$ad01a8c0@zaphod
Whole thread Raw
In response to Re: Join efficiency  (<terry@ashtonwoodshomes.com>)
List pgsql-general
Russ Brown wrote:

> >> SELECT * FROM a, b WHERE a.x=b.x;

> >> SELECT * FROM a JOIN b ON a.x=b.x;

> That being the case, would it be true to say that with recent versions of
> PostgreSQL they both perform identically, meaning the second could be
> considered preferable due to its self-documenting nature (and consistency
> with the OUTER JOIN syntax)?

Assuming join_collapse_limit is at it's default or set higher...

As far as I can say from reading the documentation, following the hackers
list and trying out myself: yes, both versions should yield the same
optimized query plan and are therefore equal performance wise.

You can just use the one you prefer.

Best Regards,
Michael Paesold


pgsql-general by date:

Previous
From: Richard Huxton
Date:
Subject: Re: Join efficiency
Next
From: Greg Donald
Date:
Subject: <> syntax legal?