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: Wed, 16 Jul 2008 10:01:32 +0200
- Message-id: <87bq0yw943.fsf@mnc.ch> <text/plain>
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
Home |
Main Index |
Thread Index