Re: CTTAS w/ DISTINCT ON crashes backend

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: CTTAS w/ DISTINCT ON crashes backend
Дата
Msg-id 2018.1074729116@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: CTTAS w/ DISTINCT ON crashes backend  (Mike Mascari <mascarm@mascari.com>)
Список pgsql-general
Mike Mascari <mascarm@mascari.com> writes:
> Could you give me a bit of direction?
>  [ same query works in one DB and crashes in another ]

I have a feeling this is a problem with an incorrect plan --- possibly
the same thing I just fixed a few days ago,
http://archives.postgresql.org/pgsql-committers/2004-01/msg00134.php
or perhaps another bug.  Look at EXPLAIN output and see if the two
databases are generating different plans for the query.  If so, perhaps
ANALYZE in the test database is needed?  In any case, don't ANALYZE in
the development DB, for fear of moving the stats enough to make the
problem go away ...

            regards, tom lane

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

Предыдущее
От: Mike Mascari
Дата:
Сообщение: Re: CTTAS w/ DISTINCT ON crashes backend
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: postgresql + apache under heavy load