Re: [HACKERS] avoid bloat from CREATE INDEX CONCURRENTLY - Mailing list pgsql-hackers

From Simon Riggs
Subject Re: [HACKERS] avoid bloat from CREATE INDEX CONCURRENTLY
Date
Msg-id CANP8+j+2b4D9rGz_WDEka-6+=Uu=9QF5nCERV7yJ2b3VSZ=JaQ@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] avoid bloat from CREATE INDEX CONCURRENTLY  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [HACKERS] avoid bloat from CREATE INDEX CONCURRENTLY  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Simon Riggs
Date:
Subject: [HACKERS] Avoiding bloat in CIC
Next
From: Jan Michálek
Date:
Subject: Re: [HACKERS] Other formats in pset like markdown, rst, mediawiki