aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2017-10-16 15:51:23 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2017-10-16 15:51:23 -0400
commitbe0ebb65f51225223421df6e10eb6e87fc8264d7 (patch)
tree47f81081e66bb4f8ad984b8f56f9b62d3bacfd51 /doc/src
parentc3dfe0fec01469b8a7de327303cad50ba8ed338a (diff)
downloadpostgresql-be0ebb65f51225223421df6e10eb6e87fc8264d7.tar.gz
postgresql-be0ebb65f51225223421df6e10eb6e87fc8264d7.zip
Allow the built-in ordered-set aggregates to share transition state.
The built-in OSAs all share the same transition function, so they can share transition state as long as the final functions cooperate to not do the sort step more than once. To avoid running the tuplesort object in randomAccess mode unnecessarily, add a bit of infrastructure to nodeAgg.c to let the aggregate functions find out whether the transition state is actually being shared or not. This doesn't work for the hypothetical aggregates, since those inject a hypothetical row that isn't traceable to the shared input state. So they remain marked aggfinalmodify = 'w'. Discussion: https://postgr.es/m/CAB4ELO5RZhOamuT9Xsf72ozbenDLLXZKSk07FiSVsuJNZB861A@mail.gmail.com
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions