Re: Multiple Wait Events for extensions

From: legrand legrand <legrand_legrand(at)hotmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Multiple Wait Events for extensions
Date: 2018-10-28 17:12:48
Message-ID: 1540746768158-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Michael Paquier-2 wrote
> On Wed, Oct 24, 2018 at 11:18:13AM -0700, legrand legrand wrote:
>> Would a hard coded solution as described here after possible for
>> mid-term?
>
> I don't think I would commit that as we would want a better solution
> with custom names, but patching Postgres to do so with a custom build
> would be easy enough..

I can't deploy a custom build in my context, and will reuse existing spare
events
like
- 0x050E0000U "Activity"-"unknown wait event"
- 0x0B010000U "???"-"unknown wait event"
- ...

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)

Regards
PAscal

--
Sent from: http://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrey Borodin 2018-10-28 17:32:33 Re: GiST VACUUM
Previous Message legrand legrand 2018-10-28 16:57:12 Re: Multiple Wait Events for extensions