Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aB0VH-0006Ix-7l for pgsql-odbc@arkaria.postgresql.org; Mon, 21 Dec 2015 13:27:55 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aB0VG-0005Eb-CY for pgsql-odbc@arkaria.postgresql.org; Mon, 21 Dec 2015 13:27:54 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aB0VF-0005D4-Lx for pgsql-odbc@postgresql.org; Mon, 21 Dec 2015 13:27:53 +0000 Received: from richelieu.telekom.sk ([213.81.152.93] helo=smtp.t-com.sk) by makus.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1aB0VC-0007Qo-Rz for pgsql-odbc@postgresql.org; Mon, 21 Dec 2015 13:27:52 +0000 MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=utf-8; format=flowed Received: from [192.168.1.29] ([unknown] [212.5.197.144]) by relay2.stonline.sk (STOnline ESMTP Server) with ESMTPSA id <0NZP00J00MKO1D10@relay2.stonline.sk> for pgsql-odbc@postgresql.org; Mon, 21 Dec 2015 14:24:25 +0100 (CET) To: pgsql-odbc@postgresql.org From: Ondrej Dzivy Balucha Subject: query timeout Message-id: <5677FE48.8010100@horizon.sk> Date: Mon, 21 Dec 2015 14:27:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Icedove/38.4.0 X-Pg-Spam-Score: 0.0 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org Hi Is there any keyword to setup query timeout? I have ODBC connection to remote PostgreSQL database. I connect to db with isql (for example), send query and i get result. Now connection lost(disconnected cable or other problem) and I send next query. No answer or error message and isql waiting and waiting and .... waiting(I was waiting for 20 minutes and no response). Is there any way to setup timeout in odbc.ini or odbcinst.ini? I know that ibm DB2 has this keyword in db2 client(ReceiveTimeout = time in seconds to wait for a reply from the server on an established connection before terminating the attempt and generating a communication timeout error). If I setup ReceiveTimeout = 5 , than I get error after 5 seconds when no response. I need setup this for PostgreSQL. Regards -- Ondrej Dzivy Balucha Horizon, s.r.o. Prešov Francisciho 21 08001 Prešov tel/fax +421517491400/02 -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc