pgsql: Fix broken cleanup interlock for GIN pending list.

Поиск
Список
Период
Сортировка
От Robert Haas
Тема pgsql: Fix broken cleanup interlock for GIN pending list.
Дата
Msg-id E1eFQmZ-0001nb-6K@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Fix broken cleanup interlock for GIN pending list.

The pending list must (for correctness) always be cleaned up by vacuum, and
should (for the avoidance of surprising behavior) always be cleaned up
by an explicit call to gin_clean_pending_list, but cleanup is optional
when inserting.  The old logic got this backward: cleanup was forced
if (stats == NULL), but that's going to be *false* when vacuuming and
*true* for inserts.

Masahiko Sawada, reviewed by me.

Discussion: http://postgr.es/m/CAD21AoBLUSyiYKnTYtSAbC+F=XDjiaBrOUEGK+zUXdQ8owfPKw@mail.gmail.com

Branch
------
REL9_6_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/19648ce553360852ef6a3bd32019d969144e32b6

Modified Files
--------------
src/backend/access/gin/ginfast.c   | 14 +++++++++-----
src/backend/access/gin/ginvacuum.c |  6 +++---
src/include/access/gin_private.h   |  2 +-
3 files changed, 13 insertions(+), 9 deletions(-)


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: pgsql: Fix typo in comment.
Следующее
От: Robert Haas
Дата:
Сообщение: pgsql: Remove redundant line from Makefile.