Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

libpq and psql not on same page about SIGPIPE

1 view
Skip to first unread message

Tom Lane

unread,
Nov 15, 2004, 11:54:56 AM11/15/04
to
libpq compiled with --enable-thread-safety thinks it can set the SIGPIPE
signal handler. It thinks once is enough.

psql thinks it can arbitrarily flip the signal handler between SIG_IGN
and SIG_DFL. Ergo, after the first use of the pager for output, libpq's
SIGPIPE handling will be broken.

I submit that psql is unlikely to be the only program that does this,
and therefore that libpq must be considered broken, not psql.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match

0 new messages