Re: WIP: parallel GiST index builds - Mailing list pgsql-hackers

From Tomas Vondra
Subject Re: WIP: parallel GiST index builds
Date
Msg-id 8240d834-e42d-4f69-a393-b502dcdef780@vondra.me
Whole thread Raw
In response to Re: WIP: parallel GiST index builds  (Tomas Vondra <tomas.vondra@enterprisedb.com>)
List pgsql-hackers
Hi,

Here's an updated patch using GetFakeLSNForUnloggedRel() instead of the
atomic counter. I think this looks much nicer and less invasive, as it
simply uses XLogCtl shared memory (instead of having to pass a new
pointer everywhere).

We still need to pass the is_parallel flag, though. I wonder if we could
get rid of that too, and just use GetFakeLSNForUnloggedRel() for both
parallel and non-parallel builds? Why wouldn't that work?

I've spent quite a bit of time testing this, but mostly for correctness.
I haven't redone the benchmarks, that's on my TODO.


regards

-- 
Tomas Vondra
Attachment

pgsql-hackers by date:

Previous
From: Umar Hayat
Date:
Subject: Re: psql client does not handle WSAEWOULDBLOCK on Windows
Next
From: Nathan Bossart
Date:
Subject: Re: [PATCH] Add crc32(text) & crc32(bytea)