Hi PostgreSQL developers,
FYI, this was recently sent to the ancient old Debian bug report
'Postmaster ignores SIGPIPE'.  It seems that this was introduced
way back in 1997 in , but withouth a sufficient explanation why
SIGPIPE isn't properly handled instead of just ignored.
The bug trail in  contains a followup from Tom that ignoring
SIGPIPE is specifically intended. Is there any document which states
the reason for that?
Thanks in advance for any insight,
----- Forwarded message from Markus Schaber <schabi(at)logix-tt(dot)com> -----
Subject: Bug#255208: Would help with client aborts, too.
Reply-To: Markus Schaber <schabi(at)logix-tt(dot)com>, 255208(at)bugs(dot)debian(dot)org
Date: Fri, 24 Mar 2006 13:08:55 +0100
From: Markus Schaber <schabi(at)logix-tt(dot)com>
X-Spam-Status: No, score=0.7 required=4.0 tests=AWL,BAYES_50,
DATE_IN_FUTURE_06_12 autolearn=no version=3.0.3
Listening to SIGPIPE could also help detecting "unclean" client-side
connection aborts, e. G. due to a program crash or sigkill on the
client, or network problem between server and client.
This way, the server could abort long-running statements immediately,
instead of running them just to rollback them afterwards because the
client does not commit.
During development, I often forcedly abort my java clients, but the
server continues to execute the current statement. Having two or three
such sequential scans running in the background, selectively sending
SIGTERM to the backends as root is the only way to get the postmaster
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org
----- End forwarded message -----
Martin Pitt http://www.piware.de
Ubuntu Developer http://www.ubuntu.com
Debian Developer http://www.debian.org
In a world without walls and fences, who needs Windows and Gates?
pgsql-bugs by date
|Next:||From: Tom Lane||Date: 2006-03-26 16:33:47|
|Subject: Re: Followup comment for bug report 'postmaster ignores SIGPIPE' [was: Bug#255208: Would help with client aborts, too.] |
|Previous:||From: Martin Pitt||Date: 2006-03-26 12:49:43|
|Subject: Fwd: Bug#358546: failure of pg_ctl start -w -D|