Old query lying around in pg_stat_activity for weeks - Mailing list pgsql-admin

From Jacque Edmund
Subject Old query lying around in pg_stat_activity for weeks
Date
Msg-id CANOmo00m4BDU1EqXQ6HAc8N7uQoiwo1zM=2BnR3Mq+K3hkGCHw@mail.gmail.com
Whole thread Raw
Responses Re: Old query lying around in pg_stat_activity for weeks
List 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?

pgsql-admin by date:

Previous
From: Paul Smith
Date:
Subject: Re: Creating redwood datestyle in Postgres 12
Next
From: Julien Rouhaud
Date:
Subject: Re: Old query lying around in pg_stat_activity for weeks