pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Don't bother to attach column name lists to RowExprs of named ty
Date: Thu, 17 Mar 2022 22:25:51 +0000
Message-ID: <E1nUyZ5-000BJn-1V@gemulon.postgresql.org> (raw)

Don't bother to attach column name lists to RowExprs of named types.

If a RowExpr is marked as returning a named composite type, we aren't
going to consult its colnames list; we'll use the attribute names
shown for the type in pg_attribute.  Hence, skip storing that list,
to save a few nanoseconds when copying the expression tree around.

Discussion: https://postgr.es/m/2950001.1638729947@sss.pgh.pa.us

Branch
------
master

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

Modified Files
--------------
src/backend/optimizer/prep/prepjointree.c |  6 +++---
src/backend/optimizer/util/var.c          |  1 +
src/backend/rewrite/rewriteManip.c        |  6 +++---
src/include/nodes/primnodes.h             | 16 +++++++---------
4 files changed, 14 insertions(+), 15 deletions(-)



Message-ID: <E1nUyZ5-000BJn-1V@gemulon.postgresql.org>
Permalink:  ../E1nUyZ5-000BJn-1V@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1nUyZ5-000BJn-1V@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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: pgsql: Don't bother to attach column name lists to RowExprs of named ty
  In-Reply-To: <E1nUyZ5-000BJn-1V@gemulon.postgresql.org>
  References: <E1nUyZ5-000BJn-1V@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