Connection limit doesn't work for superuser

From: Evgeniy Efimkin <efimkin(at)yandex-team(dot)ru>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Connection limit doesn't work for superuser
Date: 2018-11-07 08:48:44
Message-ID: 1924571541580524@iva5-815ce03d682b.qloud-c.yandex.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Connection limit doesn't work for superuser
Hi hackers!
It would be nice if ALTER USER ... WITH CONNECTION LIMIT will work for superuser. It would protect against connection leaks. e.g. we have two superusers, one of them reached connection limit but not max_connections, the other is still possible to connect to database and solve the problem. The current behaviour would be the same for the case with rolconnlimit = -1. Superuser can execute NOLOGIN to another superuser and it works. I found previos discussion about CONNECTION LIMIT for superuser but it ended about Slony. https://www.postgresql.org/message-id/1154351265.22367.210.camel%40coppola.muc.ecircle.de

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fabien COELHO 2018-11-07 09:01:20 Re: csv format for psql
Previous Message Kato, Sho 2018-11-07 08:31:29 RE: Performance improvements of INSERTs to a partitioned table