Re: Detoasting optionally to make Explain-Analyze less misleading - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Detoasting optionally to make Explain-Analyze less misleading
Date
Msg-id 2802772.1694532399@sss.pgh.pa.us
Whole thread Raw
In response to Re: Detoasting optionally to make Explain-Analyze less misleading  (Matthias van de Meent <boekewurm+postgres@gmail.com>)
Responses Re: Detoasting optionally to make Explain-Analyze less misleading
List pgsql-hackers
Matthias van de Meent <boekewurm+postgres@gmail.com> writes:
> Hmm, maybe we should measure the overhead of serializing the tuples instead.
> The difference between your patch and "serializing the tuples, but not
> sending them" is that serializing also does the detoasting, but also
> includes any time spent in the serialization functions of the type. So
> an option "SERIALIZE" which measures all the time the server spent on
> the query (except the final step of sending the bytes to the client)
> would likely be more useful than "just" detoasting.

+1, that was my immediate reaction to the proposal as well.  Some
output functions are far from cheap.  Doing only the detoast part
seems like it's still misleading.

Do we need to go as far as offering both text-output and binary-output
options?

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Document that PG_TRY block cannot have a return statement
Next
From: Matthias van de Meent
Date:
Subject: Re: GenBKI emits useless open;close for catalogs without rows