Re: Database Performance problem

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Database Performance problem
Дата
Msg-id 3172.1043076810@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Database Performance problem  (joepie Platteau <joepie.Platteau@kulak.ac.be>)
Список pgsql-novice
joepie Platteau <joepie.Platteau@kulak.ac.be> writes:
> shared_buffers = 128

Try boosting that to 1000 or so.  The default sort_mem is on the miserly
side as well; you could try 5000 or 10000 for that.

But probably a more important bit of advice is to run ANALYZE.  I think
most likely Postgres is choosing a bad query plan because it doesn't
have any statistics about the table contents.

If ANALYZE doesn't help, let's see the output of EXPLAIN ANALYZE for the
problem query.

            regards, tom lane

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

Предыдущее
От: Manfred Koizar
Дата:
Сообщение: Re: UNION?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: UNION?