Seems it's not after all a Postgre problem... The Apache/php server was in fact very slow due to loops, but not totally unavailable... A bigger CPU helped a lot. And indeed, lowering max_execution_time helps a lot ! Thanks for your replies ! > > You can set a maximum time for execution. This is set for every > script in > > php.ini with max_execution_time (default is 30 seconds). > > Thanks for your answer. but this has already been done. > And until it aborts (30 sec) no more DB access... > > What I'm looking for is a setting or a way to NEVER let 1 php script > hangs the entire database resources ? > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > >