aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlogutils.c
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2014-12-18 21:13:52 +0900
committerFujii Masao <fujii@postgresql.org>2014-12-18 21:13:52 +0900
commit19e065c0492c34fbccbd2c3707ba68cff14195a3 (patch)
treef34ea79704758b2adcaf1e8beafc4d77035d2b5a /src/backend/access/transam/xlogutils.c
parentccf292cd2ec16c69ddfee3bf72afe113a7595e00 (diff)
downloadpostgresql-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/transam/xlogutils.c')
0 files changed, 0 insertions, 0 deletions