]> granicus.if.org Git - postgresql/commit
In plpgsql, don't try to convert int2vector or oidvector to expanded array.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 18 Aug 2016 18:48:51 +0000 (14:48 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 18 Aug 2016 18:48:51 +0000 (14:48 -0400)
commitc81c71d8846fa1667e67b45559ce4c72a8e076d9
treea8a78134e5f1e2fde5bd22d9e82cb5828d0dfaf8
parent191d45793df71d69b83cfa3c8c2747f7597ba1b7
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>
src/include/utils/array.h
src/pl/plpgsql/src/pl_comp.c