public inbox for [email protected]  
help / color / mirror / Atom feed
From: yudhi s <[email protected]>
To: [email protected]
Cc: Juan Rodrigo Alejandro Burgos Mella <[email protected]>
Cc: pgsql-general <[email protected]>
Subject: Re: Controlling resource utilization
Date: Wed, 17 Apr 2024 13:12:49 +0530
Message-ID: <CAEzWdqdJzxUjotQYPpN-6zropJ3e9gMHYOxvtunjJaQj5H1FQA@mail.gmail.com> (raw)
In-Reply-To: <[email protected]>
References: <CAEzWdqdU3cNWiZxSbdJOYP6MR4xdrKof6Rvz-V=xd8dmvH+WCw@mail.gmail.com>
	<CAHbZ42wp3330nZcEWWq5PS5UrB36TCCW7iw=+q122bj_ejQoAg@mail.gmail.com>
	<CAEzWdqcHxchRxcAYr_OQaVbYOfAEqOCgshGuydf0LmLBe0waZQ@mail.gmail.com>
	<CAHbZ42zeyjryzSQH=X+TPutaVOOhGT9sOa1HEBF__eALowUngA@mail.gmail.com>
	<[email protected]>

On Wed, 17 Apr, 2024, 12:40 pm , <[email protected]> wrote:

>
>
> ------------------------------
>
> *De: *"Juan Rodrigo Alejandro Burgos Mella" <[email protected]>
> *À: *"yudhi s" <[email protected]>
> *Cc: *"pgsql-general" <[email protected]>
> *Envoyé: *Mardi 16 Avril 2024 22:29:35
> *Objet: *Re: Controlling resource utilization
>
> ALTER ROLE <your-username> SET statement_timeout = '<time_unit>';
>
> Regards
> Gilles
>
>

Thank you so much. That helps.

This statement is succeeding for user as I executed. So it's working I
believe.

But to immediately verify without manually running queries and waiting for
it to be auto killed to confirm, Is there any system table which we can
verify to see if this setting is effective, as because I don't see any such
columns in pg_user or pg_role which shows the statement_timeout.

 And is there a way to put similar cap/restrictions on other db resources
like cpu, memory, I/O at specific user/role level?

>


view thread (4+ messages)  latest in thread

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: [email protected]
  Cc: [email protected], [email protected], [email protected], [email protected]
  Subject: Re: Controlling resource utilization
  In-Reply-To: <CAEzWdqdJzxUjotQYPpN-6zropJ3e9gMHYOxvtunjJaQj5H1FQA@mail.gmail.com>

* 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