Re: Pg_stat_activity question

From: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
To: J T <jorge(dot)torralba(at)gmail(dot)com>
Cc: "[ADMIN]" <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Pg_stat_activity question
Date: 2021-03-11 06:30:07
Message-ID: CAKFQuwYLqsDRT3EdjQAKTmrRZBz4w6mkzYGbVJ5ECCa47CF8PQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Wednesday, March 10, 2021, J T <jorge(dot)torralba(at)gmail(dot)com> wrote:

> pg_stat_activity.
>
> When wait_event_type is null and state is active, is the session waiting
> on CPU? Can't quite figure out what PG is doing under those conditions.
>

Per the “active” its executing a query. Since its not “waiting” on any
specific internal-to-the-instance resource it is either just doing its
thing or, as you noted, waiting to be given a CPU by the O/S.

David J.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Paul Smith 2021-03-11 10:34:42 Using pg_upgrade to change from 32 to 64 bit.
Previous Message J T 2021-03-11 06:20:56 Pg_stat_activity question