pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgsql: Fix broken cleanup interlock for GIN pending list.
3+ messages / 1 participants
[nested] [flat]

* pgsql: Fix broken cleanup interlock for GIN pending list.
@ 2017-11-16 20:29 Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Robert Haas @ 2017-11-16 20:29 UTC (permalink / raw)
  To: 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
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3b2787e1f8f1eeeb6bd9565288ab210262705b56

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(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Fix broken cleanup interlock for GIN pending list.
@ 2017-11-16 20:29 Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Robert Haas @ 2017-11-16 20:29 UTC (permalink / raw)
  To: 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
------
REL_10_STABLE

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

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(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pgsql: Fix broken cleanup interlock for GIN pending list.
@ 2017-11-16 20:29 Robert Haas <rhaas@postgresql.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Robert Haas @ 2017-11-16 20:29 UTC (permalink / raw)
  To: 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(-)



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2017-11-16 20:29 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-11-16 20:29 pgsql: Fix broken cleanup interlock for GIN pending list. Robert Haas <rhaas@postgresql.org>
2017-11-16 20:29 pgsql: Fix broken cleanup interlock for GIN pending list. Robert Haas <rhaas@postgresql.org>
2017-11-16 20:29 pgsql: Fix broken cleanup interlock for GIN pending list. Robert Haas <rhaas@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox