agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedlimits on the number of concurrent DBMS sessions per account
3+ messages / 2 participants
[nested] [flat]
* limits on the number of concurrent DBMS sessions per account
@ 2022-03-04 15:07 Kevin Tu <kevintu888@gmail.com>
2022-03-04 15:11 ` Re: limits on the number of concurrent DBMS sessions per account Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 3+ messages in thread
From: Kevin Tu @ 2022-03-04 15:07 UTC (permalink / raw)
To: pgsql-sql@lists.postgresql.org
Hello team,
Let's say I have a user userA, does anyone know how to limit the number of
concurrent sessions for this user? I know in Oracle a simple logon trigger
would do it.
Appreciate any thoughts and/or code snippets in this.
--
Best Regards,
Kevin Tu
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: limits on the number of concurrent DBMS sessions per account
2022-03-04 15:07 limits on the number of concurrent DBMS sessions per account Kevin Tu <kevintu888@gmail.com>
@ 2022-03-04 15:11 ` Tom Lane <tgl@sss.pgh.pa.us>
2022-03-04 15:29 ` Re: limits on the number of concurrent DBMS sessions per account Kevin Tu <kevintu888@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Tom Lane @ 2022-03-04 15:11 UTC (permalink / raw)
To: Kevin Tu <kevintu888@gmail.com>; +Cc: pgsql-sql@lists.postgresql.org
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
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: limits on the number of concurrent DBMS sessions per account
2022-03-04 15:07 limits on the number of concurrent DBMS sessions per account Kevin Tu <kevintu888@gmail.com>
2022-03-04 15:11 ` Re: limits on the number of concurrent DBMS sessions per account Tom Lane <tgl@sss.pgh.pa.us>
@ 2022-03-04 15:29 ` Kevin Tu <kevintu888@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: Kevin Tu @ 2022-03-04 15:29 UTC (permalink / raw)
To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-sql@lists.postgresql.org
Thanks Tom! As always, you're the best!
On Fri, Mar 4, 2022 at 10:11 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 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
>
--
Best Regards,
Kevin Tu
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2022-03-04 15:29 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2022-03-04 15:07 limits on the number of concurrent DBMS sessions per account Kevin Tu <kevintu888@gmail.com>
2022-03-04 15:11 ` Tom Lane <tgl@sss.pgh.pa.us>
2022-03-04 15:29 ` Kevin Tu <kevintu888@gmail.com>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox