pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guillaume Cottenceau <gc@mnc.ch>
To: nalini <nalini@nic.in>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Transaction handling through java
Date: Wed, 16 Jul 2008 10:01:32 +0200
Message-ID: <87bq0yw943.fsf@mnc.ch> (raw)
In-Reply-To: <5b2b89135586bc69.487de7d7@nic.in>
References: <5b2b89135586bc69.487de7d7@nic.in>

Hi,

> I am facing the following problem.
>
> Our application sends a block of queries to postgres in a begin end
> block. If one of the queries take a long time to finish the whole
> transaction is assumed to be committed by the application even though
> the query is still running . This results in failure of all subsequent
> transactions.
>
> Although the application is programmed to catch all exceptions , it
> somehow is not able to figure out that the transaction is still not
> complete.

I may be missing something, but it seems to me that the problem
is your application wrongly assuming that queries taking a long
time to finish are assumed to be already committed?

-- 
Guillaume Cottenceau



view thread (4+ messages)  latest in thread

Message-ID: <87bq0yw943.fsf@mnc.ch>
Permalink:  ../87bq0yw943.fsf@mnc.ch/
Also on:    postgresql.org/message-id/87bq0yw943.fsf@mnc.ch

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: gc@mnc.ch, nalini@nic.in
  Subject: Re: Transaction handling through java
  In-Reply-To: <87bq0yw943.fsf@mnc.ch>
  References: <5b2b89135586bc69.487de7d7@nic.in> <87bq0yw943.fsf@mnc.ch>

* 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