In plpgsql, allow %TYPE and %ROWTYPE to be followed by array decoration.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 5e8674dc83926f52516f847f1a77e8d38e94e143
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2024-01-04T20:24:15Z
Releases: 17.0
In plpgsql, allow %TYPE and %ROWTYPE to be followed by array decoration.

This provides the useful ability to declare a variable that is an array
of the type of some other variable or some table column.

Quan Zongliang, Pavel Stehule

Discussion: https://postgr.es/m/ec4523e1-9e7e-f3ef-f9ce-bafd680ad6f6@yeah.net

Files

Documentation touched

Discussion