Re: Query optimisation on two machines is different. - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Query optimisation on two machines is different.
Date
Msg-id Pine.BSF.4.10.10010120945520.45823-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Query optimisation on two machines is different.  (Martin Tomes <martin.tomes@controls.eurotherm.co.uk>)
List pgsql-general
Have you vacuum analyzed one of the databases and not the other?
The optimizer in the first case thinks 391 rows will match and in the
second something like 50000.  That's what's probably driving the move
toward sequence scan in the second case.

Stephan Szabo
sszabo@bigpanda.com

On 12 Oct 2000, Martin Tomes wrote:

>
> I have Redhat 6.2 installed on two very different machines.  One is a Dual
> processor xeon with 512Mb RAM and RAID disks, the other is for development and
> is a PII-266 with an IDE disk.  I have PostgreSQL 7.0 installed on both from
> the same RPMS and two identical databases (I used pg_dump on the production
> machine and psql -e to read it into the development machine).  However there
> is one query which uses an index on the Big Machine but not on the Small
> Machine.
>


pgsql-general by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: postgresql 7.1
Next
From: Bruce Momjian
Date:
Subject: Re: postgresql 7.1