Skip site navigation (1) Skip section navigation (2)

BUG #4123: Statement.setQueryTimeout does not work with Postgres Java Driver

From: "Amit Mujawar" <amit(dot)mujawar(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #4123: Statement.setQueryTimeout does not work with Postgres Java Driver
Date: 2008-04-22 10:05:03
Message-ID: 200804221005.m3MA53Cc035590@wwwmaster.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      4123
Logged by:          Amit Mujawar
Email address:      amit(dot)mujawar(at)gmail(dot)com
PostgreSQL version: 8.1
Operating system:   Windows XP
Description:        Statement.setQueryTimeout does not work with Postgres
Java Driver
Details: 

I am using PostgreSQL through JDBC
PostgreSQL  8.1, Driver - org.postgresql.Driver 8.1-408.jdbc3

When I set Statement.setQueryTimeout, the timeout value does not show any
effect on actual timeout...The query blocks for a specific time always [may
be configured by another global variable - statement_timeout? not sure]

I suspect there is a problem with JDBC driver implementation for
setQueryTimeout API.

Responses

pgsql-bugs by date

Next:From: John ParnefjordDate: 2008-04-22 10:53:39
Subject: Re: ERROR: failed to re-find parent key in "sl_seqlog_idx" for deletion target
Previous:From: Eugen KonkovDate: 2008-04-22 08:49:17
Subject: BUG #4122: ./postres 'restart' does not start server with same options as 'start' does

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group