Re: BUG #6497: Error sent to client, but data written anyway - Mailing list pgsql-bugs

From Tatsuo Ishii
Subject Re: BUG #6497: Error sent to client, but data written anyway
Date
Msg-id 20120301.081002.242108456694127118.t-ishii@sraoss.co.jp
Whole thread Raw
In response to Re: BUG #6497: Error sent to client, but data written anyway  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
> You might wish to believe that you can ignore the problem, but you can't.
> No matter what Postgres does or doesn't do, external issues such as
> network failures can create the problem of a transaction possibly being
> committed while the client remains in doubt whether it happened or not.

I think this is a well known issue and the only solution is a
transaction system covering the communication path. Since there's no
such a transaction system exists in PostgreSQL, clients should be very
carefull when try to resend DMLs as you already pointed out.

F.Y.I. pgpool-II disconnects the connection to PostgreSQL upon failure
including network problem, rather than trying to resend packet to
PostgreSQL due to the reason stated above.
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #6497: Error sent to client, but data written anyway
Next
From: "k/a"
Date:
Subject: Re: BUG #6498: with recursive / union all