pgsql: Fix broken cleanup interlock for GIN pending list.

2017-11-16 Thread Robert Haas
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 logi

pgsql: Fix broken cleanup interlock for GIN pending list.

2017-11-16 Thread Robert Haas
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 logi

pgsql: Fix broken cleanup interlock for GIN pending list.

2017-11-16 Thread Robert Haas
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 logi