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 |
Are you using a private postgresql instance?