From: Tom Lane <tgl@sss.pgh.pa.us>
To: tgunasekara@openworld.org
Cc: PGSQL Admin <pgsql-admin@postgresql.org>
Subject: Re: Why this Query Plan is different
Date: Thu, 24 Mar 2005 00:59:29 -0500
Message-ID: <23424.1111643969@sss.pgh.pa.us> (raw)
In-Reply-To: <20050324040117.87BC753582@svr1.postgresql.org>
References: <20050324040117.87BC753582@svr1.postgresql.org>
"Thilina Gunasekara" <tgunasekara@openworld.org> writes:
> I have two PostgreSQL Database Servers running on Gentoo which versions are
> PostgreSQL 7.4.5 (Box A) and PostgreSQL 7.3.9 (Box B)
> Due to a recent query posted by a developer I was interested to know which
> factors are affecting these two servers to behave in a different manner to
> the same query. Please shed light on this.
7.4 knows a great deal more about optimizing IN queries than 7.3 does.
I think you have misidentified the two query plans, because "Hash IN
Join" is not a plan type that 7.3 has at all. What is not clear to me
is which version is really slower. Could we see EXPLAIN ANALYZE output
(correctly labeled ;-)) not just EXPLAIN?
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-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, tgunasekara@openworld.org
Subject: Re: Why this Query Plan is different
In-Reply-To: <23424.1111643969@sss.pgh.pa.us>
References: <20050324040117.87BC753582@svr1.postgresql.org> <23424.1111643969@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