Re: set local statement_timeout within a stored procedure - Mailing list pgsql-general

From Tom Lane
Subject Re: set local statement_timeout within a stored procedure
Date
Msg-id 3812228.1710855629@sss.pgh.pa.us
Whole thread Raw
In response to set local statement_timeout within a stored procedure  ("Abraham, Danny" <danny_abraham@bmc.com>)
List pgsql-general
"Abraham, Danny" <danny_abraham@bmc.com> writes:
> Is there a way to integrate " set local statement_timeout" in a stored procedure?

Not usefully.  statement_timeout bounds the time spent for a single
command sent by the client.  So by the time you're inside a procedure,
the countdown is already running (or not) for the current command, and
it's too late to change it with effect for that command.

            regards, tom lane



pgsql-general by date:

Previous
From: Johnathan Tiamoh
Date:
Subject: Postgres database encryption
Next
From: Greg Sabino Mullane
Date:
Subject: Re: Postgres database encryption