Re: changing sort_mem on the fly?

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: changing sort_mem on the fly?
Дата
Msg-id 1106894066.3226.104.camel@localhost.localdomain
обсуждение исходный текст
Ответ на Re: changing sort_mem on the fly?  ("Jim C. Nasby" <decibel@decibel.org>)
Ответы Re: changing sort_mem on the fly?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Thu, 2005-01-27 at 20:03 -0600, Jim C. Nasby wrote:
> Yes, there is a risk allowing ad-hoc settings; you can starve the
> machine for memory.

A malicious user who can execute SELECT queries can already consume an
arbitrary amount of memory -- say, by disabling GEQO and self-joining
pg_class to itself 50 times. I'm not sure that letting users modify
sort_mem/work_mem actually increases the risk from malicious users.
Restricting this parameter to superusers only would also be a hit to
usability.

-Neil



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

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: query variables
Следующее
От: Tom Lane
Дата:
Сообщение: Re: changing sort_mem on the fly?