Re: dropping datumSort field - Mailing list pgsql-hackers

From Robert Haas
Subject Re: dropping datumSort field
Date
Msg-id CA+TgmoaeFBR+n7NNTjGyDiQwpFur29OCthmtEp8cj=Ph_UEnoA@mail.gmail.com
Whole thread Raw
In response to dropping datumSort field  (Zhihong Yu <zyu@yugabyte.com>)
Responses Re: dropping datumSort field
List pgsql-hackers
On Mon, Aug 8, 2022 at 5:51 PM Zhihong Yu <zyu@yugabyte.com> wrote:
> Hi,
> I was looking at ExecSort() w.r.t. datum sort.
>
> I wonder if the datumSort field can be dropped.
> Here is a patch illustrating the potential simplification.
>
> Please take a look.

One problem with this patch is that, if I apply it, PostgreSQL does not compile:

nodeSort.c:197:6: error: use of undeclared identifier 'tupDesc'
        if (tupDesc->natts == 1)
            ^
1 error generated.

Leaving that aside, I don't really see any advantage in this sort of change.

-- 
Robert Haas
EDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Reducing the chunk header sizes on all memory context types
Next
From: Andrew Dunstan
Date:
Subject: Re: PG 15 (and to a smaller degree 14) regression due to ExprEvalStep size