summaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistxlog.c
diff options
context:
space:
mode:
authorAndres Freund <andres@anarazel.de>2018-01-02 18:02:37 -0800
committerAndres Freund <andres@anarazel.de>2018-01-02 18:23:37 -0800
commitf9ccf92e16fc4d831d324c7f7ef347a0acdaef0a (patch)
tree2d06f30b49c898e90bffe5ac33e5a5569ad6175a /src/backend/access/gist/gistxlog.c
parent5dc692f78d3bee1e86d095a9e8d9242b44f78b01 (diff)
downloadpostgresql-f9ccf92e16fc4d831d324c7f7ef347a0acdaef0a.tar.gz
Simplify representation of aggregate transition values a bit.
Previously aggregate transition values for hash and other forms of aggregation (i.e. sort and no group by) were represented differently. Hash based aggregation used a grouping set indexed array pointing to an array of transition values, whereas other forms of aggregation used one flattened array with the index being computed out of grouping set and transition offsets. That made upcoming changes hard, so represent both as grouping set indexed array of per-group data. As a nice side-effect this also makes aggregation slightly faster, because computing offsets with `transno + (setno * numTrans)` turns out not to be that cheap (too big for x86 lea for example). Author: Andres Freund Discussion: https://postgr.es/m/20171128003121.nmxbm2ounxzb6n2t@alap3.anarazel.de
Diffstat (limited to 'src/backend/access/gist/gistxlog.c')
0 files changed, 0 insertions, 0 deletions