explicit JOIN faster than implicit?

From: Eric Schwarzenbach <subscriber(at)blackbrook(dot)org>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: explicit JOIN faster than implicit?
Date: 2009-08-05 21:43:20
Message-ID: 4A79FCF8.5030606@blackbrook.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm in the process taking a large SELECT statement which had been
written using implicit join syntax (that is, just listing all the tables
in the FROM clause, and listing join conditions in the WHERE clause) and
rewriting it to use explicit JOIN syntax (they are all inner joins).
This has sped up the query by 50%.

This is using Postgres 8.3 on a database with GEQO turned off.

Is this what would be expected? Does the query planner / optimizer
generally do better with explicit JOIN syntax?

Cheers,

Eric

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Martin Gainty 2009-08-05 21:56:30 Re: explicit JOIN faster than implicit?
Previous Message Chris Browne 2009-08-05 21:35:53 Re: Does derby have an embedded Mode like Derby ?