Re: Statement Timeout at User Level - Mailing list pgsql-performance

From Albe Laurenz
Subject Re: Statement Timeout at User Level
Date
Msg-id D960CB61B694CF459DCFB4B0128514C202854E2F@exadv11.host.magwien.gv.at
Whole thread Raw
In response to Statement Timeout at User Level  ("Gauri Kanekar" <meetgaurikanekar@gmail.com>)
List pgsql-performance
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

pgsql-performance by date:

Previous
From: "Gauri Kanekar"
Date:
Subject: Statement Timeout at User Level
Next
From: Matthew Wakeling
Date:
Subject: Re: RAID arrays and performance