]> 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)
commita8fc1950520985f321d4d07da9b1c633c0addd97
treeabf09845a9a30a474d499821ab0b3c6464629e23
parenta0833b972bd1e1198486bcea1651fcbd160a02c3
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