Old query lying around in pg_stat_activity for weeks

From: Jacque Edmund <jacqueedmund(at)gmail(dot)com>
To: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Old query lying around in pg_stat_activity for weeks
Date: 2021-03-26 11:16:42
Message-ID: CANOmo00m4BDU1EqXQ6HAc8N7uQoiwo1zM=2BnR3Mq+K3hkGCHw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Was alerted to an old query lying around in the pg_stat_activity view on a
little used server recently. It ha no values for wait_event_type or
wait_event and had an idle state value. The query_start value was about
two weeks old. Odd, but after verifying it had no pg_lock lookup, I
canceled it.

Might there be an infrequent staleness of items that appear in the
pg_stat_activity view that is just understood to be there from time to time?

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Julien Rouhaud 2021-03-26 11:25:28 Re: Old query lying around in pg_stat_activity for weeks
Previous Message Paul Smith 2021-03-26 09:16:00 Re: Creating redwood datestyle in Postgres 12