From: | Peter Geoghegan <pg(at)heroku(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Heikki Linnakangas <hlinnaka(at)iki(dot)fi>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>, Corey Huinker <corey(dot)huinker(at)gmail(dot)com> |
Subject: | Re: Parallel tuplesort (for parallel B-Tree index creation) |
Date: | 2016-09-26 19:40:05 |
Message-ID: | CAM3SWZSxvacUK8o22Jk0ufSUqW-nVPaBYcLnrse_hMHFbYN84g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Sep 26, 2016 at 6:58 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>> That requires some kind of mutual exclusion mechanism, like an LWLock.
>
> No, it doesn't. Shared memory queues are single-reader, single-writer.
The point is that there is a natural dependency when merging is
performed eagerly within the leader. One thing needs to be in lockstep
with the others. That's all.
--
Peter Geoghegan
From | Date | Subject | |
---|---|---|---|
Next Message | Stephen Frost | 2016-09-26 19:43:47 | Re: Remove superuser() checks from pgstattuple |
Previous Message | Tom Lane | 2016-09-26 19:38:03 | Re: [GENERAL] inconsistent behaviour of set-returning functions in sub-query with random() |