From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Don't bother to attach column name lists to RowExprs of named ty |
Date: | 2022-03-17 22:25:51 |
Message-ID: | [email protected] |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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/[email protected]
Branch
------
master
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Munro | 2022-03-18 00:50:28 | pgsql: Declare aarch64 has single copy atomicity for 8 byte values. |
Previous Message | Tom Lane | 2022-03-17 22:18:31 | pgsql: Revert applying column aliases to the output of whole-row Vars. |