Thread: Statement Timeout at User Level

Statement Timeout at User Level

From
"Gauri Kanekar"
Date:
Hi,

Is it possible to put Statement timeout at User Level.
Like If i have a user like 'guest', Can i put a statement timeout for it.

--
Regards
Gauri

Re: Statement Timeout at User Level

From
"Albe Laurenz"
Date:
Gauri Kanekar wrote:
> Is it possible to put Statement timeout at User Level.
> Like If i have a user like 'guest', Can i put a statement
> timeout for it.

If only all problems were that easily solved!

ALTER ROLE guest SET statement_timeout=10000;

This will cause all statements longer than 10 seconds and issued
by "guest" to be aborted.

Yours,
Laurenz Albe