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

2024-10-29 Thread Ranier Vilela
Em ter., 29 de out. de 2024 às 09:25, David Rowley escreveu: > On Wed, 30 Oct 2024 at 01:07, Ranier Vilela 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 els

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

2024-10-29 Thread David Rowley
On Wed, 30 Oct 2024 at 01:07, Ranier Vilela 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.

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

2024-10-29 Thread Ranier Vilela
Hi. 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. trivial patch attached. best regards, Ranier Vilela 0001-avoid-possible-useless-palloc-view