Re: Multiple Wait Events for extensions - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Multiple Wait Events for extensions
Date
Msg-id 20181029000547.GB14242@paquier.xyz
Whole thread Raw
In response to Re: Multiple Wait Events for extensions  (legrand legrand <legrand_legrand@hotmail.com>)
List pgsql-hackers
On Sun, Oct 28, 2018 at 10:12:48AM -0700, legrand legrand wrote:
> An other idea that may be called a "better wait event error handling"
> would have be to display:
>
> "???-xx" unknown event type (xx being the associated number)
> in pgstat_get_wait_event_type()
>
> "unknown wait event - yy" unknown event name (yy being the associated
> number)
> in pgstat_get_wait_event()
>
> giving an extended range of spare events ;o)

Those look like half-baked workarounds in my opinion.  What we may want
to finish with is the possibility to register a new event with a custom
string bundled so as an extension loaded via shared_preload_libraries
could call it.  That's not a small amount of work.
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: Conflicting option checking in pg_restore
Next
From: David Rowley
Date:
Subject: Re: Ordered Partitioned Table Scans