pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Rowley <drowley@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Reduce variable scope and possibly useless palloc
Date: Tue, 29 Oct 2024 12:39:14 +0000
Message-ID: <E1t5lVC-0030QL-V0@gemulon.postgresql.org> (raw)

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(-)



Message-ID: <E1t5lVC-0030QL-V0@gemulon.postgresql.org>
Permalink:  ../E1t5lVC-0030QL-V0@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1t5lVC-0030QL-V0@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: drowley@postgresql.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Reduce variable scope and possibly useless palloc
  In-Reply-To: <E1t5lVC-0030QL-V0@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox