Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLvH2-000849-OG for pgsql-general@arkaria.postgresql.org; Mon, 04 Dec 2017 18:15:24 +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 1eLvH1-00019A-Mh for pgsql-general@arkaria.postgresql.org; Mon, 04 Dec 2017 18:15:23 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eLvH1-00018v-C8 for pgsql-general@lists.postgresql.org; Mon, 04 Dec 2017 18:15:23 +0000 Received: from smtp1.redcom.com ([192.86.3.143]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eLvGy-0002F4-5S for pgsql-general@postgresql.org; Mon, 04 Dec 2017 18:15:21 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp1.redcom.com (Postfix) with ESMTP id 1BE15A01B; Mon, 4 Dec 2017 13:15:19 -0500 (EST) X-Virus-Scanned: amavisd-new at redcom.com Received: from smtp1.redcom.com ([127.0.0.1]) by localhost (smtp1.redcom.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZdXlSbrTrroR; Mon, 4 Dec 2017 13:15:16 -0500 (EST) Received: from pie.redcom.com (pie [192.168.33.15]) by smtp1.redcom.com (Postfix) with ESMTP id 96AEF9F78; Mon, 4 Dec 2017 13:15:16 -0500 (EST) Received: from exch-02.redcom.com (exch-02.redcom.com [192.168.32.9]) by pie.redcom.com (8.11.7p1+Sun/8.10.2) with ESMTP id vB4IFFl25769; Mon, 4 Dec 2017 13:15:15 -0500 (EST) Received: from exch-02.redcom.com (fd00::ccaa:c259:22f8:6f4b) by exch-02.redcom.com (fd00::ccaa:c259:22f8:6f4b) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Mon, 4 Dec 2017 13:15:15 -0500 Received: from exch-02.redcom.com ([fe80::ccaa:c259:22f8:6f4b]) by exch-02.redcom.com ([fe80::ccaa:c259:22f8:6f4b%12]) with mapi id 15.00.1178.000; Mon, 4 Dec 2017 13:15:15 -0500 From: "Day, David" To: Tom Lane CC: "pgsql-general@postgresql.org" Subject: RE: attempting to retrieve column names from information schema fails. Thread-Topic: attempting to retrieve column names from information schema fails. Thread-Index: AdNtD6vkfT3ytNN7QXmjP2l/9LCfQAANFQqAAAa2NVA= Date: Mon, 4 Dec 2017 18:15:14 +0000 Message-ID: References: <182854d4bc7e4438a3ade4cecaae3694@exch-02.redcom.com> <21131.1512403695@sss.pgh.pa.us> In-Reply-To: <21131.1512403695@sss.pgh.pa.us> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [192.168.84.42] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Thank you Tom. I'll log that suggestion with our internal trouble report for actions to ta= ke on it's next occurrence. I should have thought of using your suggested view. It's been some time s= ince I have had any suspicious postgresql behavior to explore and had forgotten about some of t= he better power tools. Admin skills get rusty. Best Dave -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us]=20 Sent: Monday, December 04, 2017 11:08 AM To: Day, David Cc: pgsql-general@postgresql.org Subject: Re: attempting to retrieve column names from information schema fa= ils. "Day, David" writes: > I'm looking on some insights on the following problem on retrieving=20 > table column names from the information schema ( postgres 9.6.6 FreeBSD 1= 1.1 ) When my client starts up up. Each thread ( 10 ) run this command. > select column_name from information_schema.columns where table_name =3D=20 > 'pep_port_log'; I have encountered two instances of testing Where the ser= ver does not respond 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 waiti= ng. (I'm wondering about undetected deadlocks, for instance.) If it's runn= ing, maybe you could collect some stack traces to try to narrow down what i= t'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_Postgre= SQL_backend_on_Linux/BSD regards, tom lane