pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
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
Date: Thu, 08 Nov 2018 09:48:11 -0500
Message-ID: <19084.1541688491@sss.pgh.pa.us> (raw)
In-Reply-To: <15493-c69664b13991e9b6@postgresql.org>
References: <15493-c69664b13991e9b6@postgresql.org>

=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> 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 '<IDLE>%') 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




view thread (4+ messages)  latest in thread

Message-ID: <19084.1541688491@sss.pgh.pa.us>
Permalink:  ../19084.1541688491@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19084.1541688491@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, frank.buettner@mdc-berlin.de
  Subject: Re: BUG #15493: Wrong name of fields/missing fields for the internal statistic
  In-Reply-To: <19084.1541688491@sss.pgh.pa.us>
  References: <15493-c69664b13991e9b6@postgresql.org> <19084.1541688491@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox