Re: GIN pending list clean up exposure to SQL

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: GIN pending list clean up exposure to SQL
Дата
Msg-id 20151119155222.GJ614468@alvherre.pgsql
обсуждение исходный текст
Ответ на GIN pending list clean up exposure to SQL  (Jeff Janes <jeff.janes@gmail.com>)
Ответы Re: GIN pending list clean up exposure to SQL
Список pgsql-hackers
Jeff Janes wrote:
> I've written a function which allows users to clean up the pending list.
> It takes the index name and returns the number of pending list pages
> deleted.

I just noticed that your patch uses AccessShareLock on the index.  Is
that okay?  I would have assumed that you'd need ShareUpdateExclusive
(same as vacuum uses), but I don't really know.  Was that a carefully
thought-out choice?

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



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: [PATCH] Skip ALTER x SET SCHEMA if the schema didn't change
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [PROPOSAL] TAP test example