Re: Multiple Wait Events for extensions

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: legrand legrand <legrand_legrand(at)hotmail(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Multiple Wait Events for extensions
Date: 2018-10-29 00:05:47
Message-ID: 20181029000547.GB14242@paquier.xyz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David Rowley 2018-10-29 00:44:33 Re: Ordered Partitioned Table Scans
Previous Message Michael Paquier 2018-10-29 00:02:24 Re: Conflicting option checking in pg_restore