Re: [NOVICE] Fwd: Process scheduling in postgres - Mailing list pgsql-general

From John R Pierce
Subject Re: [NOVICE] Fwd: Process scheduling in postgres
Date
Msg-id 93683554-bcbf-d461-0bb8-e5a8b3554f93@hogranch.com
Whole thread Raw
In response to Re: [NOVICE] Fwd: Process scheduling in postgres  (raghu vineel <raghuvineel@gmail.com>)
List pgsql-general
On 4/25/2016 12:40 AM, raghu vineel wrote:

Yes, they query the same table. But all queries are select only. Postgres is 8.3 and OS is LINUX  2.6.32-431.el6.x86_64.
Also I could see that pg_locks.granted is true for the queries I have submitted and lock mode is AccessShareLock.

select * from pg_stat_activity when its in that state, and look at ...  oh wow, 8.3?  thats WAY out of support and obsolete.

anyways, pg_stat_activity is an internal table, and its fields have changed a few times over the releases, I don't have anything that old to look at, but there should be a field 'state' or 'status' or something that shows if the query is waiting, locked, or running.   pg_stat_activity has one row for each open connection.







-- 
john r pierce, recycling bits in santa cruz

pgsql-general by date:

Previous
From: Ihnat Peter | TSS Group a.s.
Date:
Subject: Re: Background worker with Listen
Next
From: Craig Ringer
Date:
Subject: Re: BDR Alter table failing