Re: Selecting across Multiple Tables - Mailing list pgsql-general

From Doug McNaught
Subject Re: Selecting across Multiple Tables
Date
Msg-id m3k7w1h8ae.fsf@belphigor.mcnaught.org
Whole thread Raw
In response to Re: Selecting across Multiple Tables  (Tielman J de Villiers <tjdevil@bondnet.co.za>)
List pgsql-general
Tielman J de Villiers <tjdevil@bondnet.co.za> writes:

> The main issue however is why postgres 7.1 works fine (and quick) on "WHERE"
> statements such as
>
> >Where 1.id = (select last_value from sequence) and
> >      2.id = (select last_value from sequence) and
> >      3.id = (select last_value from sequence) and
> >      4.id = (select last_value from sequence) and
>
> While postgres 6.2 drops dead on it, and works slow on "WHERE" such as
> >Where 1.id = (select last_value from sequence) and
> >      2.id = 1.id and
> >      3.id = 1.id and
> >      4.id = 1.id and
> >      5.id = 1.id and

I would say the answer is that 7.1 has at least 2 years' worth of
improvement and optimization over 6.5.2.  There is no reason to be
running 6.X in this day and age, and a lot of reasons not to be.

-Doug
--
Let us cross over the river, and rest under the shade of the trees.
   --T. J. Jackson, 1863

pgsql-general by date:

Previous
From: "Peter Darley"
Date:
Subject: Re: Installing DBD::Pg module without Pg Database server
Next
From: "Patrick Henry"
Date:
Subject: PostgreSQL Callback Mechanism