Re: 64-bit wait_event and introduction of 32-bit wait_event_arg

From: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
To: Jakub Wartak <jakub(dot)wartak(at)enterprisedb(dot)com>
Cc: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: 64-bit wait_event and introduction of 32-bit wait_event_arg
Date: 2025-12-09 09:24:24
Message-ID: aTfqyE9Sw27IxiaP@ip-10-97-1-34.eu-west-3.compute.internal
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On Tue, Dec 09, 2025 at 10:14:19AM +0100, Jakub Wartak wrote:
> On Mon, Dec 8, 2025 at 12:27 PM Bertrand Drouvot
> <bertranddrouvot(dot)pg(at)gmail(dot)com> wrote:
> >
> > pid | wait_event_type | wait_event | infos
> > ---------+-----------------+--------------+-------------------------------------------------------------
> > 2560105 | IO | DataFileRead | {"blocknum" : "9272", "dbnode" : "5", "relnode" : "16407"}
> > 2560135 | IO | WalSync | {"segno" : "1", "tli" : "1"}
> > 2560138 | IO | DataFileRead | {"blocknum" : "78408", "dbnode" : "5", "relnode" : "16399"}
> >
> > The "descriptions" were added in wait_event_names.txt, for example,
> >
> > +DATA_FILE_READ "Waiting for a read from a relation data file." "blocknum" "dbnode" "relnode"
> >
> Hi Bertrand, thanks for the link. I've responded to Heikki, but Your
> thread (and feedback You got) was one of the directions of why not to
> add anything there beyond just using a more powerful(longer) registry
> for free.

Yeah exactly. My message in the current thread was only about proposing a way
to add a text description to the extra value.

Regards,

--
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Amit Kapila 2025-12-09 09:36:31 Re: Fix LOCK_TIMEOUT handling in slotsync worker
Previous Message Jakub Wartak 2025-12-09 09:14:19 Re: 64-bit wait_event and introduction of 32-bit wait_event_arg