Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gKlbY-0002Ku-LN for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Nov 2018 14:48:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gKlbV-0000Q4-I1 for pgsql-bugs@arkaria.postgresql.org; Thu, 08 Nov 2018 14:48:17 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gKlbV-0000Px-8F for pgsql-bugs@lists.postgresql.org; Thu, 08 Nov 2018 14:48:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1gKlbS-0002QH-DX for pgsql-bugs@lists.postgresql.org; Thu, 08 Nov 2018 14:48:16 +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 wA8EmBei019085; Thu, 8 Nov 2018 09:48:11 -0500 From: Tom Lane To: frank.buettner@mdc-berlin.de cc: pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15493: Wrong name of fields/missing fields for the internal statistic In-reply-to: <15493-c69664b13991e9b6@postgresql.org> References: <15493-c69664b13991e9b6@postgresql.org> Comments: In-reply-to =?utf-8?q?PG_Bug_reporting_form?= message dated "Thu, 08 Nov 2018 14:11:14 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <19083.1541688491.1@sss.pgh.pa.us> Date: Thu, 08 Nov 2018 09:48:11 -0500 Message-ID: <19084.1541688491@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?q?PG_Bug_reporting_form?= writes: > After some times, many errors are logged about not existing fields. > < 2018-11-08 14:21:59.820 CET >ERROR: column "procpid" does not exist at > character 132 > < 2018-11-08 14:21:59.820 CET >STATEMENT: SELECT datname, datid, usename, > client_addr, '' AS state, COALESCE(ROUND(EXTRACT(epoch FROM > now()-query_start)),0) AS seconds, > procpid as pid, regexp_replace(current_query, E'[\n\r\u2028]+', ' > ', 'g' ) AS current_query FROM pg_stat_activity WHERE (query_start IS NOT > NULL AND current_query NOT LIKE '%') ORDER BY query_start, procpid > DESC; The procpid and current_query columns disappeared from pg_stat_activity in Postgres 9.2 (or more accurately, they were renamed because they changed meaning a bit). Apparently you're using some very old monitoring software that hasn't been updated to know about that. regards, tom lane