Re: Tracking wait event for latches - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Tracking wait event for latches
Date
Msg-id CAB7nPqRS-hyr5eTAJ+Nt8WrT-67taChfhvc1yGShzU3eimrvOA@mail.gmail.com
Whole thread Raw
In response to Re: Tracking wait event for latches  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
On Thu, Sep 22, 2016 at 10:49 PM, Robert Haas <robertmhaas@gmail.com> wrote:
> Finally, extensions got their own category in this taxonomy, though I
> wonder if it would be better to instead have
> Activity/ExtensionActivity, Client/ExtensionClient,
> Timeout/ExtensionTimeout, and IPC/ExtensionIPC instead of making it a
> separate toplevel category.

I don't think that it is necessary to go up to that level. If you look
at the latest patch, WaitLatch & friends have been extended with two
arguments: classId and eventId, so extensions could just use
WAIT_ACTIVITY as classId and WE_EXTENSION as eventId to do the
equivalent of ExtensionActivity.
-- 
Michael



pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Write Ahead Logging for Hash Indexes
Next
From: Mark Kirkwood
Date:
Subject: Re: Hash Indexes