Re: Multiple pq_flush: send() failed: Broken pipe

From: "Thalis A(dot) Kalfigopoulos" <thalis(at)cs(dot)pitt(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Multiple pq_flush: send() failed: Broken pipe
Date: 2001-06-13 16:46:59
Message-ID: Pine.LNX.4.21.0106131241570.19889-100000@aluminum.cs.pitt.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

The truth of the matter is that I have queries that take too long to execute and I sometimes interrupt them with ^C. I assume the backend dies when the frontend receives this, correct?
So if that's the case, there is no harm other than that the logfile gets really fat (e.g. potential server crash at some point?)

t.

On Wed, 13 Jun 2001, Tom Lane wrote:

> "Thalis A. Kalfigopoulos" <thalis(at)cs(dot)pitt(dot)edu> writes:
> > I have my logfile flooded with the message:
> > pq_flush: send() failed: Broken pipe
> > I went through the archives and I found plenty of (older) cases where
> > this was usually accompanied by a 'FATAL:' message and lead to a
> > crash. In my case there is only this by itself (*many* times) and it
> > doesn't lead to a crash. Any idea what could be causing it?
>
> Perhaps some backend churning away on a SELECT that produces gigabytes
> of output? (Not hard to do with a careless unqualified join ...)
> The client might have long since given up and disconnected, but right
> now the backend won't notice until it finishes the query.
>
> Send a SIGINT to the errant backend to get it to cancel the query.
>
> regards, tom lane
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-06-13 16:53:08 Re: Multiple pq_flush: send() failed: Broken pipe
Previous Message Bruce Momjian 2001-06-13 16:43:57 Re: 7.1.2 temporary file area