Re: High memory usage

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: High memory usage
Дата
Msg-id 11773.993091948@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: High memory usage  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
Список pgsql-admin
"Ross J. Reedstrom" <reedstrm@rice.edu> writes:
> My guess is it's an interaction of the optimizer with the plan for this
> query, which might have many, nearly identical cost plans, since 8 of
> the 9 tables are actually the same table.

Yes, I suspect the same.  A large fraction of the possible subplans
would have exactly identical costs, which would keep the planner from
discarding any of them (normally, it drops clearly-inferior subplans
instantly, which does a great deal to limit exponential search
behavior).  It doesn't help any that the WHERE conditions are all
so similar, either.

I have a strong suspicion that the database schema is poorly thought
out, but lacking any concrete info, it's hard to offer suggestions
for improvement.

            regards, tom lane

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

Предыдущее
От: "Rainer Mager"
Дата:
Сообщение: RE: High memory usage
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Gradual increase in CPU utilization by postmaster