Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eLt3a-0000nq-U9 for pgsql-general@arkaria.postgresql.org; Mon, 04 Dec 2017 15:53: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 1eLt3a-00063h-Hg for pgsql-general@arkaria.postgresql.org; Mon, 04 Dec 2017 15:53: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 1eLt3a-00063V-AH for pgsql-general@lists.postgresql.org; Mon, 04 Dec 2017 15:53:22 +0000 Received: from smtp1.redcom.com ([192.86.3.143]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eLt3T-0006nV-01 for pgsql-general@postgresql.org; Mon, 04 Dec 2017 15:53:21 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp1.redcom.com (Postfix) with ESMTP id 489FDA02A for ; Mon, 4 Dec 2017 10:53:13 -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 5Rs201hHjdGC for ; Mon, 4 Dec 2017 10:53:11 -0500 (EST) Received: from pie.redcom.com (pie [192.168.33.15]) by smtp1.redcom.com (Postfix) with ESMTP id DDCE0A028 for ; Mon, 4 Dec 2017 10:53:10 -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 vB4FrAl21581 for ; Mon, 4 Dec 2017 10:53:10 -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 10:53:10 -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 10:53:10 -0500 From: "Day, David" To: "pgsql-general@postgresql.org" Subject: attempting to retrieve column names from information schema fails. Thread-Topic: attempting to retrieve column names from information schema fails. Thread-Index: AdNtD6vkfT3ytNN7QXmjP2l/9LCfQA== Date: Mon, 4 Dec 2017 15:53:09 +0000 Message-ID: <182854d4bc7e4438a3ade4cecaae3694@exch-02.redcom.com> 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 Hi, I'm looking on some insights on the following problem on retrieving table c= olumn 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 'pe= p_port_log'; I have encountered two instances of testing Where the server does not respo= nd to that command. Otherwise I can interact with the database. I end up restoring the databas= e to recover. At the point of failure, Using pgamdinIII , I find the information schema = is visible. In general any catalog "column" related table fails to respond= with data. ( I end up cancelling the query, as it just appears to hang. Normal respon= se would be a second or two )=20 The tables that it should be representing i.e. pep_port_log is present and= viewable in it's schema. A sample of other non-column related objects return data in the information= schema. Shutting down the database/postgres and restarting does not clear the issue= . I do not recall seeing any locks that would help explain the issue. Nothing yet has caught my eye in the postgres log related to this circumsta= nce. I'll add that this all works 99.99% of the time. I have only experienced t= his twice, while exploring load testing of the total system. The client side was started, running and has coredumped. The client side h= as a pool of connections (10) that as a matter of routine=20 Drop and re-establish a connection on a round robin basis. One of the thre= ads may have been running the above command at the time the client coredumps in an unrelated matter. It is on the subsequent resta= rt of the client that this command starts to fail and the client fails to reach a runnable condition as it blocks on this query. I have no clue the point at which the information_schema. column relations= got out of wack. Any suggestions as to how these column related relations might become corru= pted or Debug/inspection measure that I should attempt on the next rare occurrence= ? Best Regards Dave Day