Re: [HACKERS] avoid bloat from CREATE INDEX CONCURRENTLY

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: [HACKERS] avoid bloat from CREATE INDEX CONCURRENTLY
Дата
Msg-id CANP8+j+2b4D9rGz_WDEka-6+=Uu=9QF5nCERV7yJ2b3VSZ=JaQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [HACKERS] avoid bloat from CREATE INDEX CONCURRENTLY  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [HACKERS] avoid bloat from CREATE INDEX CONCURRENTLY  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 28 February 2017 at 13:05, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Alvaro Herrera <alvherre@2ndquadrant.com> writes:
>> This patch reduces the amount of bloat you get from running CREATE INDEX
>> CONCURRENTLY by destroying the snapshot taken in the first phase, before
>> entering the second phase.  This allows the global xmin to advance,
>
> Um ... isn't there a transaction boundary there anyway?

Yes, the patch releases the snapshot early, so it does not hold it
once the build scan has completed. This allows the sort and build
phases to occur without holding back the xmin.

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



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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: [HACKERS] Avoiding bloat in CIC
Следующее
От: Jan Michálek
Дата:
Сообщение: Re: [HACKERS] Other formats in pset like markdown, rst, mediawiki