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

From Tomas Vondra
Subject Re: Detoasting optionally to make Explain-Analyze less misleading
Date
Msg-id 7b7d46b1-d6f7-eb10-55c9-aa45fce57781@enterprisedb.com
Whole thread Raw
In response to Re: Detoasting optionally to make Explain-Analyze less misleading  (stepan rutz <stepan.rutz@gmx.de>)
Responses Re: Detoasting optionally to make Explain-Analyze less misleading
List pgsql-hackers
Hi,

On 9/15/23 22:09, stepan rutz wrote:
> Hi,
> 
> please see a revised version yesterday's mail. The patch attached now
> provides the following:
> 
> EXPLAIN(ANALYZE,SERIALIZE)
> 
> and
> 
> EXPLAIN(ANALYZE,SERIALIZEBINARY)
> 

I haven't looked at the patch in detail yet, but this option name looks
a bit strange/inconsistent. Either it should be SERIALIZE_BINARY (to
match other multi-word options), or maybe there should be just SERIALIZE
with a parameter to determine text/binary (like FORMAT, for example).

So we'd do either

    EXPLAIN (SERIALIZE)
    EXPLAIN (SERIALIZE TEXT)

to get serialization to text (which I guess 99% of people will do), or

    EXPLAIN (SERIALIZE BINARY)

to get binary.


regards

-- 
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: Postgres picks suboptimal index after building of an extended statistics
Next
From: Bharath Rupireddy
Date:
Subject: Re: Atomic ops for unlogged LSN