Re: Making wait events a bit more efficient

From: Andres Freund <andres(at)anarazel(dot)de>
To: Zhihong Yu <zyu(at)yugabyte(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Robert Haas <robertmhaas(at)gmail(dot)com>
Subject: Re: Making wait events a bit more efficient
Date: 2021-04-02 20:44:22
Message-ID: 20210402204422.zhqa6abv7pibychl@alap3.anarazel.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Joel Jacobson 2021-04-02 20:46:16 [PATCH] Implement motd for PostgreSQL
Previous Message Zhihong Yu 2021-04-02 20:42:42 Re: Making wait events a bit more efficient