Re: Potential GIN vacuum bug - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Potential GIN vacuum bug
Date
Msg-id 20150817220221.GE5232@alvherre.pgsql
Whole thread Raw
In response to Re: Potential GIN vacuum bug  (Jeff Janes <jeff.janes@gmail.com>)
Responses Re: Potential GIN vacuum bug  (Jeff Janes <jeff.janes@gmail.com>)
List pgsql-hackers
Jeff Janes wrote:

> The attached patch takes a ShareUpdateExclusiveLock lock on the index in
> order to clean the pending list.

Does it take a lock on the table also?  Because if not ...

> One potential problem is how it will interact with "create index
> concurrently".

... then I don't understand how you could have a problem here.  Surely
no pending list cleanup can happen concurrently with the index being
created?

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [patch] psql tab completion for grant execute
Next
From: Amit Kapila
Date:
Subject: Re: checkpointer continuous flushing