Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYNnR-0004VS-O0 for pgsql-general@arkaria.postgresql.org; Tue, 12 May 2020 05:49:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jYNnP-0006jp-7L for pgsql-general@arkaria.postgresql.org; Tue, 12 May 2020 05:49:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jYNnO-0006ji-Vq for pgsql-general@lists.postgresql.org; Tue, 12 May 2020 05:49:38 +0000 Received: from smh-06.1blu.de ([178.254.0.206]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jYNnM-0008So-4j for pgsql-general@lists.postgresql.org; Tue, 12 May 2020 05:49:38 +0000 Received: from [172.16.29.5] (helo=sh4-5.1blu.de) by smh-06.1blu.de with esmtp (Exim 4.86_2) (envelope-from ) id 1jYNnK-0005Cw-Bb; Tue, 12 May 2020 07:49:34 +0200 Received: from ftp51246-2575596 by sh4-5.1blu.de with local (Exim 4.90_1) (envelope-from ) id 1jYNnK-00021O-9k; Tue, 12 May 2020 07:49:34 +0200 Date: Tue, 12 May 2020 07:49:34 +0200 From: Matthias Apitz To: pgsql-general@lists.postgresql.org Subject: Re: PostgreSQL client hangs sometimes on 'EXEC SQL PREPARE sid_sisisinst FROM :select_anw;' Message-ID: <20200512054934.GF5413@sh4-5.1blu.de> Reply-To: Matthias Apitz References: <20200427130618.GA24964@sh4-5.1blu.de> <20200427131955.GB24964@sh4-5.1blu.de> <20200428081018.GB4007@sh4-5.1blu.de> <20200510105226.GA14033@sh4-5.1blu.de> <9787.1589124821@sss.pgh.pa.us> <20200511065450.GA20181@sh4-5.1blu.de> <29382.1589205012@sss.pgh.pa.us> <20200511162452.GA3930@sh4-5.1blu.de> <20200511181810.GC3930@sh4-5.1blu.de> <26028.1589222489@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <26028.1589222489@sss.pgh.pa.us> X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk El día Montag, Mai 11, 2020 a las 02:41:29 -0400, Tom Lane escribió: > Matthias Apitz writes: > > Below is the exchange. The visible strings are: 'sisis' (the PG user), > > 'sisis123' (its password in PG, a dummy password used for testing) and > > 'srap32dxr1' the hostname. The server is terminating the connection with > > a F-pkg: > > [ squint... ] That looks nothing like a Postgres-protocol exchange > to me. If it weren't for the runs of zeroes, I'd wonder if the > connection had SSL encryption turned on. Perhaps you captured the > wrong session? It turned out, that the messages: 2020-05-12 05:33:06.828 CEST [6271] LOG: invalid length 33554940 of startup packet 2020-05-12 05:33:08.305 CEST [6291] LOG: invalid length 33554940 of startup packet 2020-05-12 05:34:07.495 CEST [6596] LOG: invalid length 33554940 of startup packet 2020-05-12 05:34:09.710 CEST [6927] LOG: invalid length 33554940 of startup packet have been caused by a misconfiguration of the component in question: the application used the Sybase JDBC driver to talk to the PostgreSQL server :-( This part of the thread is hereby solved. Remaining is still: 2020-04-30 15:14:03.367 CEST [3843] LOG: bogus received message length: 1650422894 2020-04-30 15:57:48.926 CEST [10380] LOG: bogus received message length: 1650422894 2020-04-30 15:58:31.851 CEST [10380] LOG: incomplete message from client 2020-04-30 15:58:53.578 CEST [10439] LOG: bogus received message length: 1650422894 2020-04-30 16:00:13.500 CEST [10439] LOG: incomplete message from client matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub