Re: Left joining against two empty tables makes a query

Поиск
Список
Период
Сортировка
От Chris Travers
Тема Re: Left joining against two empty tables makes a query
Дата
Msg-id 42E90E19.3030702@travelamericas.com
обсуждение исходный текст
Ответ на Re: Left joining against two empty tables makes a query SLOW  (Gnanavel S <s.gnanavel@gmail.com>)
Ответы Re: Left joining against two empty tables makes a query  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Left joining against two empty tables makes a query SLOW  (Gnanavel S <s.gnanavel@gmail.com>)
Список pgsql-performance
Gnanavel S wrote:

>
>
> vacuum & reindex the department and project table as the planner
> expects there are 1060 rows but actually returning nothing.

I guess I should have mentioned that I have been vacuuming and
reindexing at least once a week, and I did so just before running this test.
Normally I do:
vacuum analyze;
reindex database ....;

Secondly, the project table has *never* had anything in it.  So where
are these numbers coming from?

Best Wishes,
Chris Travers
Metatron Technology Consulting

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

Предыдущее
От: Steven Rosenstein
Дата:
Сообщение: Unable to explain DB error
Следующее
От: Chris Hoover
Дата:
Сообщение: Re: Fwd: Help with view performance problem