Re: ParallelContexts can get confused about which worker is which - Mailing list pgsql-hackers

From Robert Haas
Subject Re: ParallelContexts can get confused about which worker is which
Date
Msg-id CA+TgmoZPf9U4C1CPQoTXbHQyK-BUX0bRqatWTMgT4khYA7a1Gw@mail.gmail.com
Whole thread Raw
In response to ParallelContexts can get confused about which worker is which  (Robert Haas <robertmhaas@gmail.com>)
Responses Re: ParallelContexts can get confused about which worker is which  (Amit Kapila <amit.kapila16@gmail.com>)
List pgsql-hackers
On Fri, Oct 30, 2015 at 11:24 AM, Robert Haas <robertmhaas@gmail.com> wrote:
> The other way to fix this is to pass down the index
> that the leader assigns to any given worker, and have the worker use
> that index instead of allocating its own separate index after
> connecting to the DSM segment.  Unfortunately, there's not really a
> good way to pass that additional information down to the worker right
> now, but we could fix that pretty easily by adding an additional field
> to the BackgroundWorker structure, which the worker would then be able
> to access via MyBgworkerEntry.

Here's a patch implementing that.

--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: September 2015 Commitfest
Next
From: Jeff Janes
Date:
Subject: Re: New gist vacuum.