pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Always acquire expanded record descriptors early
3+ messages / 1 participants
[nested] [flat]

* pgsql: Always acquire expanded record descriptors early
@ 2026-11-09 14:21 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Noah Misch @ 2026-11-09 14:21 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Always acquire expanded record descriptors early

Only make_expanded_record_from_datum() deferred tuple descriptor lookup,
and it has no direct/indirect users in core nor in known open source
extensions (checked via pgxn and github).  The other ERH constructors
already acquire a descriptor eagerly.

The main reason for this change is that subsequent commits are
simplified by it.

This also allows implementing the datum constructor using
make_expanded_record_from_typeid(), removing a good bit of duplicated
code.

This preserves ABI compatibility, to allow for backpatching.

Reviewed-by: Tomas Vondra <tomas@vondra.me>
Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Security: CVE-2026-6460
Backpatch-through: 14

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/bcaef7edb41650e0648757307c100f771ebad8ad
Author: Andres Freund <andres@anarazel.de>

Modified Files
--------------
src/backend/utils/adt/expandedrecord.c       | 158 ++++-----------------------
src/include/utils/expandedrecord.h           |  15 +--
src/test/regress/expected/rowtypes_alter.out |   2 +-
3 files changed, 27 insertions(+), 148 deletions(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Always acquire expanded record descriptors early
@ 2026-11-09 14:21 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Noah Misch @ 2026-11-09 14:21 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Always acquire expanded record descriptors early

Only make_expanded_record_from_datum() deferred tuple descriptor lookup,
and it has no direct/indirect users in core nor in known open source
extensions (checked via pgxn and github).  The other ERH constructors
already acquire a descriptor eagerly.

The main reason for this change is that subsequent commits are
simplified by it.

This also allows implementing the datum constructor using
make_expanded_record_from_typeid(), removing a good bit of duplicated
code.

This preserves ABI compatibility, to allow for backpatching.

Reviewed-by: Tomas Vondra <tomas@vondra.me>
Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Security: CVE-2026-6460
Backpatch-through: 14

Branch
------
REL_19_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/4b7a4c2c9e62e94737d0175e5a05173a58d2264e
Author: Andres Freund <andres@anarazel.de>

Modified Files
--------------
src/backend/utils/adt/expandedrecord.c       | 158 ++++-----------------------
src/include/utils/expandedrecord.h           |  15 +--
src/test/regress/expected/rowtypes_alter.out |   2 +-
3 files changed, 27 insertions(+), 148 deletions(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Always acquire expanded record descriptors early
@ 2026-11-09 14:22 Noah Misch <noah@leadboat.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Noah Misch @ 2026-11-09 14:22 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Always acquire expanded record descriptors early

Only make_expanded_record_from_datum() deferred tuple descriptor lookup,
and it has no direct/indirect users in core nor in known open source
extensions (checked via pgxn and github).  The other ERH constructors
already acquire a descriptor eagerly.

The main reason for this change is that subsequent commits are
simplified by it.

This also allows implementing the datum constructor using
make_expanded_record_from_typeid(), removing a good bit of duplicated
code.

This preserves ABI compatibility, to allow for backpatching.

Reviewed-by: Tomas Vondra <tomas@vondra.me>
Reviewed-by: Melanie Plageman <melanieplageman@gmail.com>
Security: CVE-2026-6460
Backpatch-through: 14

Branch
------
REL_18_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/d835dc88d8d60816f2261128326673b11d52f0c1
Author: Andres Freund <andres@anarazel.de>

Modified Files
--------------
src/backend/utils/adt/expandedrecord.c       | 158 ++++-----------------------
src/include/utils/expandedrecord.h           |  15 +--
src/test/regress/expected/rowtypes_alter.out |   2 +-
3 files changed, 27 insertions(+), 148 deletions(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2026-11-09 14:22 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2026-11-09 14:21 pgsql: Always acquire expanded record descriptors early Noah Misch <noah@leadboat.com>
2026-11-09 14:21 pgsql: Always acquire expanded record descriptors early Noah Misch <noah@leadboat.com>
2026-11-09 14:22 pgsql: Always acquire expanded record descriptors early Noah Misch <noah@leadboat.com>

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