Re: [NOVICE] Fwd: Process scheduling in postgres

From: John R Pierce <pierce(at)hogranch(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: [NOVICE] Fwd: Process scheduling in postgres
Date: 2016-04-28 03:54:46
Message-ID: 93683554-bcbf-d461-0bb8-e5a8b3554f93@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-novice

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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2016-04-28 05:11:21 Re: BDR Alter table failing
Previous Message Guyren Howe 2016-04-28 03:19:49 Re: Proper relational database?

Browse pgsql-novice by date

  From Date Subject
Next Message richard 2016-04-28 06:13:40 How to view the activity of postgresql
Previous Message Sameer Kumar 2016-04-27 23:05:23 Re: Logging connections, not queries