Re: Making wait events a bit more efficient - Mailing list pgsql-hackers

From Andres Freund
Subject Re: Making wait events a bit more efficient
Date
Msg-id 20210402204422.zhqa6abv7pibychl@alap3.anarazel.de
Whole thread Raw
In response to Re: Making wait events a bit more efficient  (Zhihong Yu <zyu@yugabyte.com>)
List pgsql-hackers
Hi,

On 2021-04-02 13:42:42 -0700, Zhihong Yu wrote:
> I don't see where my_wait_event_info is read (there is no getter method in
> the patch).

There are no reads via my_wait_event_info. Once connected to shared
memory, InitProcess() calls pgstat_set_wait_event_storage() to point it
to &MyProc->wait_event_info.

Greetings,

Andres Freund



pgsql-hackers by date:

Previous
From: Zhihong Yu
Date:
Subject: Re: Making wait events a bit more efficient
Next
From: "Joel Jacobson"
Date:
Subject: [PATCH] Implement motd for PostgreSQL