Refactor getWeights to write to caller-supplied buffer
This gets rid of the static result buffer.
Reviewed-by: Robert Haas
Discussion: https://www.postgresql.org/message-id/7f86e06a-98c5-4ce3-8ec9-3885c8de0358@iki.fi
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/f822be39629cd24a8ad1f8f6aa444e0c9ae1eaad
Modified Files
--------------
src/backend/utils/adt/tsrank.c | 53 ++++++++++++++++++++++++------------------
1 file changed, 31 insertions(+), 22 deletions(-)