Re: Can you spot the difference?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Can you spot the difference?
Дата
Msg-id 6898.1366140598@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Can you spot the difference?  (Moshe Jacobson <moshe@neadwerx.com>)
Список pgsql-general
Moshe Jacobson <moshe@neadwerx.com> writes:
> My problem is that the exact same simple query performs great in the
> original database ("ises") and dismally in the copy database
> ("ises_coelacanth"). The problem is that in ises, it uses an index scan,
> but in ises_coelacanth it uses a sequential scan:

The rowcount estimates are much further away from reality in the second
database.  Either you forgot to run ANALYZE at all, or the stats target
settings are different (and lower) in the second DB.

            regards, tom lane


В списке pgsql-general по дате отправления:

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Can you spot the difference?
Следующее
От: Moshe Jacobson
Дата:
Сообщение: Re: Can you spot the difference?