agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kevin Tu <kevintu888@gmail.com>
Cc: pgsql-sql@lists.postgresql.org
Subject: Re: limits on the number of concurrent DBMS sessions per account
Date: Fri, 04 Mar 2022 10:11:50 -0500
Message-ID: <3852573.1646406710@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKbWnAVk2VDjpmV5s+39NHzHjHcJWGjqqhXsjavpDOh+FnFTeg@mail.gmail.com>
References: <CAKbWnAVk2VDjpmV5s+39NHzHjHcJWGjqqhXsjavpDOh+FnFTeg@mail.gmail.com>

Kevin Tu <kevintu888@gmail.com> writes:
> Let's say I have a user userA, does anyone know how to limit the number of
> concurrent sessions for this user?

ALTER USER joe CONNECTION LIMIT 42;

			regards, tom lane





view thread (3+ messages)  latest in thread

Message-ID: <3852573.1646406710@sss.pgh.pa.us>
Permalink:  ../3852573.1646406710@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/3852573.1646406710@sss.pgh.pa.us

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, kevintu888@gmail.com, pgsql-sql@lists.postgresql.org
  Subject: Re: limits on the number of concurrent DBMS sessions per account
  In-Reply-To: <3852573.1646406710@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox