Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLtI7-0001bk-41 for pgsql-general@arkaria.postgresql.org; Mon, 04 Dec 2017 16:08:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLtI6-0007W1-N4 for pgsql-general@arkaria.postgresql.org; Mon, 04 Dec 2017 16:08:22 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eLtI6-0007Vo-Fm for pgsql-general@lists.postgresql.org; Mon, 04 Dec 2017 16:08:22 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eLtI0-00077M-T5 for pgsql-general@postgresql.org; Mon, 04 Dec 2017 16:08:21 +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 vB4G8Fdi021132; Mon, 4 Dec 2017 11:08:15 -0500 From: Tom Lane To: "Day, David" cc: "pgsql-general@postgresql.org" Subject: Re: attempting to retrieve column names from information schema fails. In-reply-to: <182854d4bc7e4438a3ade4cecaae3694@exch-02.redcom.com> References: <182854d4bc7e4438a3ade4cecaae3694@exch-02.redcom.com> Comments: In-reply-to "Day, David" message dated "Mon, 04 Dec 2017 15:53:09 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21130.1512403695.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 04 Dec 2017 11:08:15 -0500 Message-ID: <21131.1512403695@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Day, David" writes: > I'm looking on some insights on the following problem on retrieving tabl= e column names from the information schema ( postgres 9.6.6 FreeBSD 11.1 ) > When my client starts up up. Each thread ( 10 ) run this command. > select column_name from information_schema.columns where table_name =3D = 'pep_port_log'; > I have encountered two instances of testing Where the server does not re= spond to that command. Hm. Next time it happens, look into pg_stat_activity to see if the backend process is waiting, and if so for what, and what other processes are waiting. (I'm wondering about undetected deadlocks, for instance.) If it's running, maybe you could collect some stack traces to try to narrow down what it's doing. Actually, a stack trace would be useful if it's waiting, too. https://wiki.postgresql.org/wiki/Getting_a_stack_trace_of_a_running_Postgr= eSQL_backend_on_Linux/BSD regards, tom lane