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 1jT33Q-00072n-Tt for pgsql-general@arkaria.postgresql.org; Mon, 27 Apr 2020 12:40:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jT33P-0006Ur-Qx for pgsql-general@arkaria.postgresql.org; Mon, 27 Apr 2020 12:40:07 +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 1jT33P-0006T3-JY for pgsql-general@lists.postgresql.org; Mon, 27 Apr 2020 12:40:07 +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 1jT33N-0000oF-A2 for pgsql-general@postgresql.org; Mon, 27 Apr 2020 12:40:06 +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 03RCe4gh005199; Mon, 27 Apr 2020 08:40:04 -0400 From: Tom Lane To: Matthias Apitz cc: Postgres general Subject: Re: PostgreSQL client hangs sometimes on 'EXEC SQL PREPARE sid_sisisinst FROM :select_anw;' In-reply-to: <20200427122123.GA11416@sh4-5.1blu.de> References: <20200427122123.GA11416@sh4-5.1blu.de> Comments: In-reply-to Matthias Apitz message dated "Mon, 27 Apr 2020 14:21:23 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5197.1587991204.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 27 Apr 2020 08:40:04 -0400 Message-ID: <5198.1587991204@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Matthias Apitz writes: > I encounter from time to time that one of our ESQL/C clients hangs with > the details described below for ever, while accessing on startup a table= = > 'sisisinst' which has only some 50 rows, all of CHAR columns. Other ESQL= /C clients > start up fine (they all check this table 'sisisinst' on startup to > verify the correct version of our application) Also SQL works > fine. > What can I do to get to the source of the problem? Thanks Can you get a stack trace from the connected backend? Or even just look at what it's doing according to pg_stat_activity? (If it's a reasonably modern server, the wait-condition fields would be interesting.) regards, tom lane