Re: Missing wait events (gap analysis) - Mailing list pgsql-hackers

From Matthias van de Meent
Subject Re: Missing wait events (gap analysis)
Date
Msg-id CAEze2WiarbHsd=jJKWD6x0LZnC1c4E+vTe7-MV3Opzrn_usXQA@mail.gmail.com
Whole thread Raw
In response to Re: Missing wait events (gap analysis)  (Darafei "Komяpa" Praliaskouski <me@komzpa.net>)
List pgsql-hackers
On Sun, 23 Nov 2025, 11:28 Darafei "Komяpa" Praliaskouski,
<me@komzpa.net> wrote:
>
> Other spots that may be invisible but helpful to keep track of are serialization/deserialization that happens on
IN/OUTfunctions (so many surprises when EXPLAIN ANALYZE doesn't account for time to actually serialize the output for
largePostGIS geometries! and that stuff like timestamptz in is also surprisingly slow), 

Are you aware of the SERIALIZE option to EXPLAIN (...)? It was added
in PG 17 to make sure that the overhead of serializing the data for
transmission to a client could also be measured and inspected by the
user.

To keep on topic to this thread about wait events: I don't think that
we should add wait events around in/out functions, because in/out
functions may call into detoasting, which calls into buffer IO
functions, which would reset the backend's wait event status.


Kind regards,

Matthias van de Meent
Databricks (https://www.databricks.com)



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: get rid of Pointer type, mostly
Next
From: Fabrice Chapuis
Date:
Subject: Re: Issue with logical replication slot during switchover