| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера