aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execParallel.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-01-05 11:33:51 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2017-01-05 11:33:51 -0500
commit5b4f8f4c6d618063f7dde0a710a4076fb444620a (patch)
tree3ecb3dacba836b169344ef3bef74193d8c415062 /src/backend/executor/execParallel.c
parentf64554b99a00ed0fe4097811dfa94265581c27ae (diff)
downloadpostgresql-5b4f8f4c6d618063f7dde0a710a4076fb444620a.tar.gz
postgresql-5b4f8f4c6d618063f7dde0a710a4076fb444620a.zip
Fix handling of empty arrays in array_fill().
array_fill(..., array[0]) produced an empty array, which is probably what users expect, but it was a one-dimensional zero-length array which is not our standard representation of empty arrays. Also, for no very good reason, it rejected empty input arrays; that case should be allowed and produce an empty output array. In passing, remove the restriction that the input array(s) have lower bound 1. That seems rather pointless, and it would have needed extra complexity to make the check deal with empty input arrays. Per bug #14487 from Andrew Gierth. It's been broken all along, so back-patch to all supported branches. Discussion: https://postgr.es/m/20170105152156.10135.64195@wrigleys.postgresql.org
Diffstat (limited to 'src/backend/executor/execParallel.c')
0 files changed, 0 insertions, 0 deletions