From: Roberto Grandi <roberto.grandi@trovaprezzi.it>
To: pgsql-admin@postgresql.org
Subject: Script timeout
Date: Tue, 17 Sep 2013 18:23:22 +0200 (CEST)
Message-ID: <326366447.356781.1379435002810.JavaMail.root@trovaprezzi.it> (raw)
In-Reply-To: <1327626325.356780.1379434995993.JavaMail.root@trovaprezzi.it>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
Dear all,
i would set a script timeout from a .net application. My problem regards how to make sure that time out will be reset at the end of the script such as
SET statement_timeout 1000
SELECT pg_sleep(2);
trowhs exception
After that
SELECT pg_sleep(2);
wouldn't throw exception.
Can you help me to solve this issue?
Many thanks in advance.
BR
Roberto
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
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-admin@postgresql.org
Cc: roberto.grandi@trovaprezzi.it
Subject: Re: Script timeout
In-Reply-To: <326366447.356781.1379435002810.JavaMail.root@trovaprezzi.it>
* 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