pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: plpgsql: Expand test coverage of assignments
Date: Mon, 09 Nov 2026 14:21:56 +0000
Message-ID: <E1xQQFw-000000003XY-0BiT@gemulon.postgresql.org> (raw)

plpgsql: Expand test coverage of assignments

We previously were lacking coverage for important assignment related
codepaths that will be touched in an upcoming fix:

- Assignment between record variables preserve ctid/tableoid only when
  the source tuple can be copied verbatim; where a conversion is needed
  they are silently dropped.

- A record variable's declared type is re-resolved by name

Security: CVE-2026-6460
Backpatch-through: 14

Branch
------
REL_19_STABLE

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

Modified Files
--------------
src/pl/plpgsql/src/expected/plpgsql_record.out | 358 ++++++++++++++++++++++++
src/pl/plpgsql/src/sql/plpgsql_record.sql      | 359 +++++++++++++++++++++++++
2 files changed, 717 insertions(+)



view thread (2+ messages)

Message-ID: <E1xQQFw-000000003XY-0BiT@gemulon.postgresql.org>
Permalink:  ../E1xQQFw-000000003XY-0BiT@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1xQQFw-000000003XY-0BiT@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: noah@leadboat.com
  Subject: Re: pgsql: plpgsql: Expand test coverage of assignments
  In-Reply-To: <E1xQQFw-000000003XY-0BiT@gemulon.postgresql.org>
  References: <E1xQQFw-000000003XY-0BiT@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