Re: Query optimisation on two machines is different.

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Martin Tomes <martin(dot)tomes(at)controls(dot)eurotherm(dot)co(dot)uk>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Query optimisation on two machines is different.
Date: 2000-10-12 16:47:47
Message-ID: Pine.BSF.4.10.10010120945520.45823-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)bigpanda(dot)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.
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2000-10-12 16:48:00 Re: postgresql 7.1
Previous Message Adam Lang 2000-10-12 16:47:10 Re: postgresql 7.1