pgsql: Refactor getWeights to write to caller-supplied buffer - Mailing list pgsql-committers

From Heikki Linnakangas
Subject pgsql: Refactor getWeights to write to caller-supplied buffer
Date
Msg-id E1sYsSm-001vmE-2D@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: pgsql: Remove leftover function declaration
Next
From: Jeff Davis
Date:
Subject: pgsql: Relax check for return value from second call of pg_strnxfrm().