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 1jT4Hm-0001RB-9J for pgsql-general@arkaria.postgresql.org; Mon, 27 Apr 2020 13:59:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jT4Hk-0004mB-F0 for pgsql-general@arkaria.postgresql.org; Mon, 27 Apr 2020 13:59:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jT4Hk-0004k1-7D for pgsql-general@lists.postgresql.org; Mon, 27 Apr 2020 13:59:00 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jT4Hf-0001Zp-BX for pgsql-general@lists.postgresql.org; Mon, 27 Apr 2020 13:58:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id 03RDwsgB017438; Mon, 27 Apr 2020 09:58:54 -0400 From: Tom Lane To: Matthias Apitz cc: pgsql-general@lists.postgresql.org Subject: Re: PostgreSQL client hangs sometimes on 'EXEC SQL PREPARE sid_sisisinst FROM :select_anw;' In-reply-to: <20200427131955.GB24964@sh4-5.1blu.de> References: <20200427122123.GA11416@sh4-5.1blu.de> <5198.1587991204@sss.pgh.pa.us> <20200427130618.GA24964@sh4-5.1blu.de> <20200427131955.GB24964@sh4-5.1blu.de> Comments: In-reply-to Matthias Apitz message dated "Mon, 27 Apr 2020 15:19:55 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <17436.1587995934.1@sss.pgh.pa.us> Date: Mon, 27 Apr 2020 09:58:54 -0400 Message-ID: <17437.1587995934@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Matthias Apitz writes: > As the client seems to be waiting on the server and the server on the > client... could it have been caused by this in /etc/hosts (what our IT > department configured): Doubt it. Your connection evidently got through (at least) the authentication exchange, so basic data transmission seems to be working. I speculate that there's something data-dependent about the command that's failing. As an example, it would not be terribly surprising to get a behavior like this if there were something deciding to do an LF -> CRLF or similar transformation on the data stream. The substitution might accidentally not trigger during authentication, only to break some actual query a bit later. But there really shouldn't be anything making such changes in our data stream. Still, looking at recent network-level configuration changes wouldn't be a bad idea. regards, tom lane