Sockets in perl (Db transaction ends abnormally at client when server closes client socket) - Mailing list pgsql-general

From Jasbinder Singh Bali
Subject Sockets in perl (Db transaction ends abnormally at client when server closes client socket)
Date
Msg-id a47902760702211121s15a99421u80e25914692f1e5@mail.gmail.com
Whole thread Raw
List pgsql-general
Hi,
I have a table on which there is a trigger fired after insert.
This trigger opens a socket with another server.
Server, after executing what it has to, closes the client socket
and at the client end (DB side) the whole transaction rolls back saying that server closed the connection abnormally
which means that the transaction at the DB side ended abnormally and hence the rollback.
 
To fix this, i tried closing the client socket at DB end (client side) itself. Unfortunatel, it keeps running the insert query forever without accomplishing anything. However, it opens the connection with the server but doesn't complete its own transaction at all.
 
Can anyone please help me solving this problem
 
Thanks,
Jas

pgsql-general by date:

Previous
From: Michelle Konzack
Date:
Subject: Re: Any Plans for cross database queries on the same server?
Next
From: "hubert depesz lubaczewski"
Date:
Subject: Re: Odd behaviour of timestamptz