Re: Connection limit doesn't work for superuser
От
Tom Lane
Тема
Re: Connection limit doesn't work for superuser
Дата
Msg-id
23533.1541614461@sss.pgh.pa.us
Ответ на
Re: Connection limit doesn't work for superuser (David G. Johnston)
Список
Дерево обсуждения
Connection limit doesn't work for superuser Evgeniy Efimkin <efimkin@yandex-team.ru>
Re: Connection limit doesn't work for superuser Andrey Borodin <x4mmm@yandex-team.ru>
Re: Connection limit doesn't work for superuser Robert Haas <robertmhaas@gmail.com>
Re: Connection limit doesn't work for superuser Tom Lane <tgl@sss.pgh.pa.us>
Re: Connection limit doesn't work for superuser Dmitriy Sarafannikov <dsarafannikov@yandex.ru>
Re: Connection limit doesn't work for superuser Robert Haas <robertmhaas@gmail.com>
Re: Connection limit doesn't work for superuser Tom Lane <tgl@sss.pgh.pa.us>
Re: Connection limit doesn't work for superuser Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: Connection limit doesn't work for superuser Laurenz Albe <laurenz.albe@cybertec.at>
Re: Connection limit doesn't work for superuser Robert Haas <robertmhaas@gmail.com>
Re: Connection limit doesn't work for superuser "David G. Johnston" <david.g.johnston@gmail.com>
Re: Connection limit doesn't work for superuser Tom Lane <tgl@sss.pgh.pa.us>
Re: Connection limit doesn't work for superuser Robert Haas <robertmhaas@gmail.com>
Re: Connection limit doesn't work for superuser "Joshua D. Drake" <jd@commandprompt.com>
Re: Connection limit doesn't work for superuser "David G. Johnston" <david.g.johnston@gmail.com>
"David G. Johnston" writes: > On the accept side, which I'm leaning toward, is that superuser is > already constrained by max_connections and, in addition, the > implications of setting this value are straight-forward and it obvious > requires intent on the part of the user. Its not a "foot-gun" in the > sense that there are side-effects that the user isn't going to be > aware of by having this feature in place - it does exactly what the > label says it does. That's a fair point, and certainly if we allow and enforce "alter user postgres nologin" (which we do), it's odd to not enforce connection limit. However, looking at the code, it's a little clearer why it was done that way: it's for consistency with the behavior of datconnlimit (per-database connection limits). I think that having superusers be immune to datconnlimit is actually the right thing; for one reason, because datconnlimit can be set by database owners, who should not be able to lock superusers out of their database. If people are okay with having rolconnlimit act differently from datconnlimit in this respect, then I'll withdraw my objection. regards, tom lane
В списке pgsql-hackers по дате отправления