Sockets in perl (Db transaction ends abnormally at client when server closes client socket)

From: "Jasbinder Singh Bali" <jsbali(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Sockets in perl (Db transaction ends abnormally at client when server closes client socket)
Date: 2007-02-21 19:21:13
Message-ID: a47902760702211121s15a99421u80e25914692f1e5@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-general by date

  From Date Subject
Next Message hubert depesz lubaczewski 2007-02-21 19:21:17 Re: Odd behaviour of timestamptz
Previous Message Sergio Andreozzi 2007-02-21 18:21:09 how to generate a list of distinct scalar values from a column which type is array