From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jérome Knöbl <jknobl@mandanet.ch>
Cc: pgsql-sql@hub.org
Subject: Re: [SQL] Prolem wiht long query?
Date: Wed, 14 Jul 1999 11:20:38 -0400
Message-ID: <25664.931965638@sss.pgh.pa.us> (raw)
In-Reply-To: <378C9F2D.495FB4A0@mandanet.ch>
=?iso-8859-1?Q?J=E9rome=20Kn=F6bl?= <jknobl@mandanet.ch> writes:
> I have some trouble with a very long query.
The amount of time taken by the optimizer goes up exponentially with
the number of tables being joined. If you are using a pre-6.5
version of Postgres then I'd recommend updating to 6.5; its optimizer
is considerably faster and less memory-hungry than prior releases.
You could also try reducing the GEQO threshold, which is the number
of tables at which the system stops trying to do exhaustive optimization
and changes to a heuristic planning method.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, jknobl@mandanet.ch, pgsql-sql@hub.org
Subject: Re: [SQL] Prolem wiht long query?
In-Reply-To: <25664.931965638@sss.pgh.pa.us>
References: <378C9F2D.495FB4A0@mandanet.ch> <25664.931965638@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox