diff options
author | Fujii Masao <fujii@postgresql.org> | 2014-12-18 21:13:52 +0900 |
---|---|---|
committer | Fujii Masao <fujii@postgresql.org> | 2014-12-18 21:13:52 +0900 |
commit | 19e065c0492c34fbccbd2c3707ba68cff14195a3 (patch) | |
tree | f34ea79704758b2adcaf1e8beafc4d77035d2b5a /src/backend/access/gist/gistbuildbuffers.c | |
parent | ccf292cd2ec16c69ddfee3bf72afe113a7595e00 (diff) | |
download | postgresql-19e065c0492c34fbccbd2c3707ba68cff14195a3.tar.gz postgresql-19e065c0492c34fbccbd2c3707ba68cff14195a3.zip |
Ensure variables live across calls in generate_series(numeric, numeric).
In generate_series_step_numeric(), the variables "start_num"
and "stop_num" may be potentially freed until the next call.
So they should be put in the location which can survive across calls.
But previously they were not, and which could cause incorrect
behavior of generate_series(numeric, numeric). This commit fixes
this problem by copying them on multi_call_memory_ctx.
Andrew Gierth
Diffstat (limited to 'src/backend/access/gist/gistbuildbuffers.c')
0 files changed, 0 insertions, 0 deletions