Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

php - postgresql max execution time

Tags:

php

postgresql

Is there an option to use with PostgreSQL Functions in PHP, so you can specify a maxim execution time for a query ? I don't want to enable this from the config file because only certain queries need to be restricted.

like image 439
johnlemon Avatar asked Jan 25 '11 08:01

johnlemon


1 Answers

run from php a query before the main query

like

SET statement_timeout TO 5000;
like image 82
Haim Evgi Avatar answered Oct 11 '22 03:10

Haim Evgi