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_16_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/2ce62526657c191273ddf8bc5e849f4719d9917f
Author: Andres Freund <[email protected]>

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(+)

Reply via email to