Arrange for an explicit cast applied to an ARRAY[] constructor to be applied

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

Commit: 6b0706ac33ab5da815980c642a9cde9a4cd86b6b
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2008-03-20T21:42:48Z
Releases: 8.4.0
Arrange for an explicit cast applied to an ARRAY[] constructor to be applied
directly to all the member expressions, instead of the previous implementation
where the ARRAY[] constructor would infer a common element type and then we'd
coerce the finished array after the fact.  This has a number of benefits,
one being that we can allow an empty ARRAY[] construct so long as its
element type is specified by such a cast.

Brendan Jurd, minor fixes by me.

Files