]> granicus.if.org Git - postgresql/commit
If the inputs of a UNION/INTERSECT/EXCEPT construct all agree on the
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 12 Nov 2001 20:04:20 +0000 (20:04 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 12 Nov 2001 20:04:20 +0000 (20:04 +0000)
commite433bf5a5ed2f0a28c4a896658dd2fe40d8b026e
tree242e05c344128a0de04a59855ad0f3d0c09c47d6
parent7a9ef7ee0945d6f5a35416fb4b9d99dd25aaab7f
If the inputs of a UNION/INTERSECT/EXCEPT construct all agree on the
typmod of a particular column, mark the output with that same typmod,
not -1 as formerly.  -1 is still used if there is any disagreement.
Part of response to bug#513.
src/backend/optimizer/prep/prepunion.c