Re: SET variable - Permission issues

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: SET variable - Permission issues
Дата
Msg-id 11314.1318091408@sss.pgh.pa.us
обсуждение исходный текст
Ответ на SET variable - Permission issues  (Josh <josh@schemaverse.com>)
Ответы Re: SET variable - Permission issues
Список pgsql-hackers
Josh <josh@schemaverse.com> writes:
> [ unhappy about users being able to freely adjust work_mem etc ]

Really, if you're letting users issue arbitrary SQL queries, there
simply isn't any way to prevent them from beating your server into
the ground.  I don't think that inserting a hack to prevent specific
configuration variables from being adjusted is going to help you
against an uncooperative user.  You'd be better off to rethink the
"let them issue SQL queries directly" part of your design.

The reason that the specific variables you mention (as well as some
others that bear on such things) are USERSET and not SUSET is precisely
that we are not trying to constrain the amount of resources an
uncooperative user can consume.  If we did try to do that, quite a
lot of design decisions would have to be revisited, and there would
be a number of unpleasant tradeoffs to be made.  GUC privilege levels
are just the tip of the iceberg.
        regards, tom lane


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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: GiST for range types (was Re: Range Types - typo + NULL string constructor)
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: REVIEW: Optimizing box_penalty