pgsql: Reduce variable scope and possibly useless palloc

From: David Rowley <drowley(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Reduce variable scope and possibly useless palloc
Date: 2024-10-29 12:39:14
Message-ID: E1t5lVC-0030QL-V0@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)vf(at)gmail(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2024-10-29 15:50:38 pgsql: Update time zone data files to tzdata release 2024b.
Previous Message David Rowley 2024-10-29 10:28:35 pgsql: Doc: add detail about EXPLAIN's "Disabled" property