pgsql: Fix array size allocation for HashAggregate hash keys.

2019-05-23 Thread Andrew Gierth
Fix array size allocation for HashAggregate hash keys. When there were duplicate columns in the hash key list, the array sizes could be miscomputed, resulting in access off the end of the array. Adjust the computation to ensure the array is always large enough. (I considered whether the duplicate

pgsql: Fix array size allocation for HashAggregate hash keys.

2019-05-23 Thread Andrew Gierth
Fix array size allocation for HashAggregate hash keys. When there were duplicate columns in the hash key list, the array sizes could be miscomputed, resulting in access off the end of the array. Adjust the computation to ensure the array is always large enough. (I considered whether the duplicate

pgsql: Fix array size allocation for HashAggregate hash keys.

2019-05-23 Thread Andrew Gierth
Fix array size allocation for HashAggregate hash keys. When there were duplicate columns in the hash key list, the array sizes could be miscomputed, resulting in access off the end of the array. Adjust the computation to ensure the array is always large enough. (I considered whether the duplicate