| From: | Noah Misch <noah(at)leadboat(dot)com> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: plpgsql: Expand test coverage of assignments |
| Date: | 2026-11-09 14:21:51 |
| Message-ID: | E1xQQFr-000000003NT-2DyN@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/2387f43ba8a1202a9a5f2c327387c2b1a1d48dfb
Author: Andres Freund <andres(at)anarazel(dot)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(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Noah Misch | 2026-11-09 14:21:52 | pgsql: Avoid use-after-free hazards in re-entrant use of pltcl. |
| Previous Message | Noah Misch | 2026-11-09 14:21:50 | pgsql: Teach equalRowTypes() to safely handle dropped columns. |