pgsql: Reuse all-zero pages in GIN.

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема pgsql: Reuse all-zero pages in GIN.
Дата
Msg-id E1ZJk7X-0001dQ-Ce@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Reuse all-zero pages in GIN.

In GIN, an all-zeros page would be leaked forever, and never reused. Just
add them to the FSM in vacuum, and they will be reinitialized when grabbed
from the FSM. On master and 9.5, attempting to access the page's opaque
struct also caused an assertion failure, although that was otherwise
harmless.

Reported by Jeff Janes. Backpatch to all supported versions.

Branch
------
REL9_5_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/202aea62a84135256c6aa394af2c4dbfa1700c85

Modified Files
--------------
src/backend/access/gin/ginvacuum.c |    2 +-
1 file changed, 1 insertion(+), 1 deletion(-)


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Reuse all-zero pages in GIN.
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: pgsql: Avoid calling PageGetSpecialPointer() on an all-zeros page.