pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Viktor Bojović <viktor.bojovic@gmail.com>
To: pgsql-sql@postgresql.org
Subject: function timeout
Date: Wed, 4 May 2011 00:27:52 +0200
Message-ID: <BANLkTinpwZY47PnhJyO2iwEB1RPGwTjMdQ@mail.gmail.com> (raw)

im writting plsh function which will execute some shell commands and return
 result as varchar to database.
problem is that some commands will possibly cause to large timeout or will
never stop so i wanted to ask
if somehow function can be autokilled if it doesn't finish in time defined
for that function.


-- 
---------------------------------------
Viktor Bojović
---------------------------------------
Wherever I go, Murphy goes with me

Message-ID: <BANLkTinpwZY47PnhJyO2iwEB1RPGwTjMdQ@mail.gmail.com>
Permalink:  ../BANLkTinpwZY47PnhJyO2iwEB1RPGwTjMdQ@mail.gmail.com/
Also on:    postgresql.org/message-id/BANLkTinpwZY47PnhJyO2iwEB1RPGwTjMdQ@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: viktor.bojovic@gmail.com
  Subject: Re: function timeout
  In-Reply-To: <BANLkTinpwZY47PnhJyO2iwEB1RPGwTjMdQ@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox