1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-27 22:56:53 +03:00
Heikki Linnakangas 0d8d0d0277 Initialize padding bytes in btree_gist varbit support.
The code expands a varbit gist leaf key to a node key by copying the bit
data twice in a varlen datum, as both the lower and upper key. The lower key
was expanded to INTALIGN size, but the padding bytes were not initialized.
That's a problem because when the lower/upper keys are compared, the padding
bytes are used compared too, when the values are otherwise equal. That could
lead to incorrect query results.

REINDEX is advised for any btree_gist indexes on bit or bit varying data
type, to fix any garbage padding bytes on disk.

Per Valgrind, reported by Andres Freund. Backpatch to all supported
versions.
2014-05-13 15:27:21 +03:00
..
2010-10-26 20:11:43 +03:00
2011-04-25 22:27:11 +03:00
2011-09-11 21:54:32 +03:00
2011-09-11 21:54:32 +03:00
2011-09-11 21:54:32 +03:00
2011-09-11 21:54:32 +03:00
2011-09-11 21:54:32 +03:00
2011-09-11 21:54:32 +03:00
2011-09-11 21:54:32 +03:00
2011-09-11 21:54:32 +03:00
2011-09-11 21:54:32 +03:00