WebFaction
Community site: login faq

Set statement_timeout in postgresql function is not working. Need to have statement_timeout in a function and catch exception query_canceled to process further our requirement. Could anyone please suggest how to make statement_timeout parameter work in a function.

Sample function is as follows: CREATE OR REPLACE FUNCTION function() BEGIN SET statement_timeout = 100000; exception when query_canceled then perform operation(); END; $$ LANGUAGE plpgsql;

begin; select function(); commit;

asked 14 Jun '16, 06:48

Sowmya T
112
accept rate: 0%

Are you using a private postgresql instance?

(15 Jun '16, 09:05) ryans ♦♦
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×109

question asked: 14 Jun '16, 06:48

question was seen: 1,959 times

last updated: 15 Jun '16, 09:05

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2021 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM