pgsql: Fix variable initialization when using buffering build withGiST

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема pgsql: Fix variable initialization when using buffering build withGiST
Дата
Msg-id E1hl5ub-0004e2-1S@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/fa19a08d71fbeefc39415d9c6c70128460d41f94

Modified Files
--------------
src/backend/access/gist/gistbuildbuffers.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: pgsql: Assorted fixes for jsonpath documentation
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: pgsql: Propagate trigger arguments to partitions