From: Karsten Hilbert <Karsten.Hilbert@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: client waits for end of update operation and server proc is idle
Date: Fri, 23 Apr 2021 10:53:57 +0200
Message-ID: <YIKLJayazOYWv2RW@hermes.hilbert.loc> (raw)
In-Reply-To: <0551daad25ee518071e002ca17c4b6dac08a236c.camel@cybertec.at>
References: <YIKCCXcEozx9iiBU@c720-r368166.fritz.box>
<0551daad25ee518071e002ca17c4b6dac08a236c.camel@cybertec.at>
Am Fri, Apr 23, 2021 at 10:48:24AM +0200 schrieb Laurenz Albe:
> > The serverlog has around this time (sorry for German):
> >
> > 2021-04-23 05:55:23.591 CEST [2317] LOG: unvollständige Message vom Client
> > 2021-04-23 05:55:23.593 CEST [2317] FEHLER: Speicher aufgebraucht
> > 2021-04-23 05:55:23.593 CEST [2317] DETAIL: Kann Zeichenkettenpuffer mit 0 Bytes nicht um 1380986158 Bytes vergrößern.
> > 2021-04-23 05:55:23.593 CEST [2317] LOG: konnte Daten nicht an den Client senden: Datenübergabe unterbrochen (broken pipe)
> > 2021-04-23 05:55:23.593 CEST [2317] FATAL: Verbindung zum Client wurde verloren
> > 2021-04-23 05:57:20.339 CEST [27190] LOG: unerwartetes EOF auf Client-Verbindung mit einer offenen Transaktion
> > 2021-04-23 05:59:17.419 CEST [26827] LOG: unerwartetes EOF auf Client-Verbindung mit einer offenen Transaktion
> >
> > What else could be checked for this? Any hints about this issue?
>
> It seems pretty clear that both the client and the server are waiting for each other.
>
> The server is of the opinion that it has completed the query, while the client is
> still waiting for the response.
>
> I would look for the problem in the network between both. The error messages
> (unexpected EOF on client connection, broken pipe) seem to point in the same direction.
It also reports an out-of-memory situation:
>> 2021-04-23 05:55:23.593 CEST [2317] FEHLER: Speicher aufgebraucht
>> 2021-04-23 05:55:23.593 CEST [2317] DETAIL: Kann Zeichenkettenpuffer mit 0 Bytes nicht um 1380986158 Bytes vergrößern.
It seems what is to be sent to the client is "too large".
Following which sending the data seems (intentionally?)
aborted by the server, which the other side likely reports as
loss-of-signal.
Also, where does the "imcomplete message from client"
originate from ?
Karsten
--
GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: Karsten.Hilbert@gmx.net
Subject: Re: client waits for end of update operation and server proc is idle
In-Reply-To: <YIKLJayazOYWv2RW@hermes.hilbert.loc>
References: <YIKCCXcEozx9iiBU@c720-r368166.fritz.box> <0551daad25ee518071e002ca17c4b6dac08a236c.camel@cybertec.at> <YIKLJayazOYWv2RW@hermes.hilbert.loc>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox