In plpgsql, don't try to convert int2vector or oidvector to expanded array.

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

Commit: 5697522d8411135d26a5d807f9e4afa182502f64
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2016-08-18T18:49:08Z
Releases: 10.0
In plpgsql, don't try to convert int2vector or oidvector to expanded array.

These types are storage-compatible with real arrays, but they don't support
toasting, so of course they can't support expansion either.

Per bug #14289 from Michael Overmeyer.  Back-patch to 9.5 where expanded
arrays were introduced.

Report: <20160818174414.1529.37913@wrigleys.postgresql.org>

Files

PathChange+/−
src/include/utils/array.h modified +1 −1
src/pl/plpgsql/src/pl_comp.c modified +7 −2