Thread: pgsql: Reduce variable scope and possibly useless palloc

pgsql: Reduce variable scope and possibly useless palloc

From
David Rowley
Date:
Reduce variable scope and possibly useless palloc

Move the CreateStmt down to the branch that it's used in, thus
preventing the makeNode() call in cases where the CreateStmt isn't used.

Author: Ranier Vilela <ranier.vf@gmail.com>
Discussion: https://postgr.es/m/CAEudQAq=06YPWPhS+yyTbCwv5JLKRz8rm3dWx6JR5Uj_d_fQDA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fcbd1bb6613fde5784b54c88e4d0398ab8e13694

Modified Files
--------------
src/backend/commands/view.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)