Re: Query optimisation on two machines is different.

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: Query optimisation on two machines is different.
Дата
Msg-id Pine.BSF.4.10.10010120945520.45823-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Query optimisation on two machines is different.  (Martin Tomes <martin.tomes@controls.eurotherm.co.uk>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: postgresql 7.1
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: postgresql 7.1