Re: Avoid possible useless call to makeNode function (src/backend/commands/view.c) - Mailing list pgsql-hackers

From Ranier Vilela
Subject Re: Avoid possible useless call to makeNode function (src/backend/commands/view.c)
Date
Msg-id CAEudQAqBg-+1vA_gPRPLK2W5HVKahqqjuWVB8fcBGPLv_0yLyg@mail.gmail.com
Whole thread Raw
In response to Re: Avoid possible useless call to makeNode function (src/backend/commands/view.c)  (David Rowley <dgrowleyml@gmail.com>)
List pgsql-hackers

Em ter., 29 de out. de 2024 às 09:25, David Rowley <dgrowleyml@gmail.com> escreveu:
On Wed, 30 Oct 2024 at 01:07, Ranier Vilela <ranier.vf@gmail.com> wrote:
> With the function *DefineVirtualRelation* has a possible
> useless call to *makeNode* function, which invokes palloc.
>
> So, reduce the scope for the variable to inner else
> where it is really necessary.

Seem legit. I can take care of that.
Thanks David, for the commit.

best regards,
Ranier Vilela

pgsql-hackers by date:

Previous
From: Andrei Zubkov
Date:
Subject: Re: Vacuum statistics
Next
From: Andy Fan
Date:
Subject: Re: detoast datum into the given buffer as a optimization.