Re: Transaction handling through java

From: Guillaume Cottenceau <gc(at)mnc(dot)ch>
To: nalini <nalini(at)nic(dot)in>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Transaction handling through java
Date: 2008-07-16 08:01:32
Message-ID: 87bq0yw943.fsf@mnc.ch
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message nalini 2008-07-16 08:35:02 Re: Transaction handling through java
Previous Message nalini 2008-07-16 07:21:43 Transaction handling through java