Re: Avoid possible useless call to makeNode function (src/backend/commands/view.c)

From: David Rowley <dgrowleyml(at)gmail(dot)com>
To: Ranier Vilela <ranier(dot)vf(at)gmail(dot)com>
Cc: Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Avoid possible useless call to makeNode function (src/backend/commands/view.c)
Date: 2024-10-29 12:25:23
Message-ID: CAApHDvppdGgxYZ6GN+30hjWctM+WFfjK-T4Kojo-TyJo3EbTzw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 30 Oct 2024 at 01:07, Ranier Vilela <ranier(dot)vf(at)gmail(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrei Zubkov 2024-10-29 12:40:09 Re: Vacuum statistics
Previous Message Aleksander Alekseev 2024-10-29 12:23:15 Re: [PATCH] Rename trim_array() for consistency with the rest of array_* functions