]> granicus.if.org Git - postgresql/commit
Fix variable initialization when using buffering build with GiST
authorMichael Paquier <michael@paquier.xyz>
Wed, 10 Jul 2019 06:14:54 +0000 (15:14 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 10 Jul 2019 06:14:54 +0000 (15:14 +0900)
commitfa19a08d71fbeefc39415d9c6c70128460d41f94
treea4c236f8f471fa4b0f305c8615d120fbad0677f7
parent5a7d697a39365d9762afa8e618bcbdcf592966fa
Fix variable initialization when using buffering build with GiST

This can cause valgrind to complain, as the flag marking a buffer as a
temporary copy was not getting initialized.

While on it, fill in with zeros newly-created buffer pages.  This does
not matter when loading a block from a temporary file, but it makes the
push of an index tuple into a new buffer page safer.

This has been introduced by 1d27dcf, so backpatch all the way down to
9.4.

Author: Alexander Lakhin
Discussion: https://postgr.es/m/15899-0d24fb273b3dd90c@postgresql.org
Backpatch-through: 9.4
src/backend/access/gist/gistbuildbuffers.c