Re: How to check if session is a hung thread/session - Mailing list pgsql-admin

From Tom Lane
Subject Re: How to check if session is a hung thread/session
Date
Msg-id 216310.1731300338@sss.pgh.pa.us
Whole thread Raw
In response to Re: How to check if session is a hung thread/session  (Edwin UY <edwin.uy@gmail.com>)
Responses Re: How to check if session is a hung thread/session
List pgsql-admin
Edwin UY <edwin.uy@gmail.com> writes:
> I thought it could be the backend has sent something back to the client but
> it never received it and it just kept on doing the same at some intervals.

Your pg_stat_activity output shows the backend is idle, meaning it's
waiting for a client command.  While the session has been around for
days, we can see the last client command was about 47 minutes ago,
from your "now() - pg_stat_activity.query_start AS duration" column.
I see no reason to think there is anything interesting here at all,
except for a client that is sitting doing nothing for long periods.

            regards, tom lane



pgsql-admin by date:

Previous
From: Edwin UY
Date:
Subject: Re: How to check if session is a hung thread/session
Next
From: p sn
Date:
Subject: Inquiry on Setting Up Automatic Failover with Stream Replication