Re: Slow Multi-joins performance [DEVELOPERS attn please]

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: jlparkinson(at)bigpond(dot)com, pgsql-sql(at)postgresql(dot)org
Subject: Re: Slow Multi-joins performance [DEVELOPERS attn please]
Date: 2002-09-09 20:26:42
Message-ID: 13474.1031603202@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Richard Huxton <dev(at)archonet(dot)com> writes:
> Which says to me that your form is fine. Testing says otherwise, so there must
> be some element of the query that is not being accounted for in EXPLAIN
> ANALYSE.

To wit, planning time. EXPLAIN ANALYZE only counts execution time.

And planning time on a 13-way join is going to be nontrivial ---
especially compared to execution against trivial-size tables.

You can turn on some query stats logging (I forget the SET-variable
names) to get a feeling for the relative costs of planning and
execution; but usually planning drops into the noise once you start
looking at production-sized cases.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Reinoud van Leeuwen 2002-09-09 21:02:27 Re: stored procedures: sybase -> postgreSQL ?
Previous Message Charles Hauser 2002-09-09 18:15:53 stored procedures: sybase -> postgreSQL ?