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

From David Rowley
Subject Re: Avoid possible useless call to makeNode function (src/backend/commands/view.c)
Date
Msg-id CAApHDvppdGgxYZ6GN+30hjWctM+WFfjK-T4Kojo-TyJo3EbTzw@mail.gmail.com
Whole thread Raw
Responses Re: Avoid possible useless call to makeNode function (src/backend/commands/view.c)
List pgsql-hackers
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.

David



pgsql-hackers by date:

Previous
From: Aleksander Alekseev
Date:
Subject: Re: [PATCH] Rename trim_array() for consistency with the rest of array_* functions
Next
From: Andrei Zubkov
Date:
Subject: Re: Vacuum statistics