Re: [EXTERNAL] Re: Limits user connection in pgbouncer

Поиск
Список
Период
Сортировка
От MichaelDBA
Тема Re: [EXTERNAL] Re: Limits user connection in pgbouncer
Дата
Msg-id 1da96539-bdef-4158-1e38-fa95371c464e@sqlexec.com
обсуждение исходный текст
Ответ на RE: [EXTERNAL] Re: Limits user connection in pgbouncer  ("Godfrin, Philippe E" <Philippe.Godfrin@nov.com>)
Ответы Re: [EXTERNAL] Re: Limits user connection in pgbouncer  (Daulat <daulat.dba@gmail.com>)
Список pgsql-admin
Hi all,

If you add the user to the database specification, then you can limit connections per user:
db1 = host=localhost dbname=db1 pool_size=2 user=myuser

Regards,
Michael Vitale


Godfrin, Philippe E wrote on 12/13/2021 7:57 AM:
On 13/12/21 10:05 π.μ., Daulat wrote:
Hello Team,
How can we limit the user to  make a specific number of connections to the database?
Just specify this in the db definition configuration :

db1 = host=localhost dbname=db1 pool_size=2

but it will apply to every user, so that every user's pool will have max 2 connections, not only user1.

Alternatively you could set "ALTER ROLE .. CONNECTION LIMIT connlimit " for user1 individually.

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

Предыдущее
От: "Godfrin, Philippe E"
Дата:
Сообщение: RE: [EXTERNAL] Re: Limits user connection in pgbouncer
Следующее
От:
Дата:
Сообщение: RE: PostgreSQL - CVE-2021-44228 - dependency on Log4j ?