Re: Parallel CREATE INDEX for GIN indexes

Tomas Vondra <tomas@vondra.me>

From: Tomas Vondra <tomas@vondra.me>
To: Vinod Sridharan <vsridh90@gmail.com>, Tomas Vondra <tomas.vondra@enterprisedb.com>
Cc: Matthias van de Meent <boekewurm+postgres@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2025-05-02T21:15:52Z
Lists: pgsql-hackers
On 4/30/25 14:39, Tomas Vondra wrote:
> 
> On 4/18/25 03:03, Vinod Sridharan wrote:
>> ...
>>
> 
> The patch seems fine to me - I repeated the tests with mailing list
> archives, with MemoryContextStats() in _gin_parallel_merge, and it
> reliably minimizes the memory usage. So that's fine.
> 
> I was also worried if this might have performance impact, but it
> actually seems to make it a little bit faster.
> 
> I'll get this pushed.
> 

And pushed, so it'll be in beta1.


Thanks!

-- 
Tomas Vondra




Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. Exercise parallel GIN builds in regression tests

  2. Lookup the correct ordering for parallel GIN builds

  3. Fix memory leak in _gin_parallel_merge

  4. Enforce memory limit during parallel GIN builds

  5. Compress TID lists when writing GIN tuples to disk

  6. Allow parallel CREATE INDEX for GIN indexes