pgsql: Reduce variable scope and possibly useless palloc - Mailing list pgsql-committers

From David Rowley
Subject pgsql: Reduce variable scope and possibly useless palloc
Date
Msg-id E1t5lVC-0030QL-V0@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: David Rowley
Date:
Subject: pgsql: Doc: add detail about EXPLAIN's "Disabled" property
Next
From: Tom Lane
Date:
Subject: pgsql: Update time zone data files to tzdata release 2024b.