aboutsummaryrefslogtreecommitdiff
path: root/src/backend/tcop/postgres.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-05-21 17:37:16 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-05-21 17:37:16 -0400
commit9561f6e97790613d2e02f1af44913402c8858dd6 (patch)
treeb2ae1152354ed3b36eb992276cc39c835063d47d /src/backend/tcop/postgres.c
parente0ca9a4ca6338107364d0dc47b0ce737e6c76d7c (diff)
downloadpostgresql-9561f6e97790613d2e02f1af44913402c8858dd6.tar.gz
postgresql-9561f6e97790613d2e02f1af44913402c8858dd6.zip
Fix missing initialization of buffer_std field in _bt_newroot().
This would only have any effect if the old root page needed to have a full-page image made (ie, this was the first mod to it since a checkpoint), *and* if the byte left uninitialized chanced to contain zero. In that case the WAL code would fail to remove the "hole" from the full-page image, which would bloat the WAL log a bit but not have any effect worse than that. Found by buildfarm member skink, whose valgrind run noticed the use of an uninitialized value. Apparently timing in the regression tests is such that the triggering condition is rare, or valgrind testing would have seen this before. Oversight in commit 40dae7ec537c5619fc93ad602c62f37be786d161. This bug affects only the 9.4 branch, since in later branches refactoring of the WAL-log-creation APIs fixed it. Report: <20160521203101.jp5yxquhhkabvo56@alap3.anarazel.de>
Diffstat (limited to 'src/backend/tcop/postgres.c')
0 files changed, 0 insertions, 0 deletions