diff options
author | Etsuro Fujita <efujita@postgresql.org> | 2020-02-21 20:00:45 +0900 |
---|---|---|
committer | Etsuro Fujita <efujita@postgresql.org> | 2020-02-21 20:00:45 +0900 |
commit | 032f9ae012d87c730be0e261a6bae9323c2b2d6c (patch) | |
tree | 2f8dd130403b01838cdc3253bad13ec685bd4414 /src/backend/executor/nodeAgg.c | |
parent | 957338418b69e9774ccc1bab59f765a62f0aa6f9 (diff) | |
download | postgresql-032f9ae012d87c730be0e261a6bae9323c2b2d6c.tar.gz postgresql-032f9ae012d87c730be0e261a6bae9323c2b2d6c.zip |
Avoid redundant checks in partition_bounds_copy().
Previously, partition_bounds_copy() checked whether the strategy for the
given partition bounds was hash or not, and then determined the number of
elements in the datums in the datums array for the partition bounds, on
each iteration of the loop for copying the datums array, but there is no
need to do that. Perform the checks only once before the loop iteration.
Author: Etsuro Fujita
Reported-by: Amit Langote and Julien Rouhaud
Discussion: https://postgr.es/m/CAPmGK14Rvxrm8DHWvCjdoks6nwZuHBPvMnWZ6rkEx2KhFeEoPQ@mail.gmail.com
Diffstat (limited to 'src/backend/executor/nodeAgg.c')
0 files changed, 0 insertions, 0 deletions