Re: PostmasterContext survives into parallel workers!? - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: PostmasterContext survives into parallel workers!?
Date
Msg-id 20160803175508.GA648317@alvherre.pgsql
Whole thread Raw
In response to Re: PostmasterContext survives into parallel workers!?  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: PostmasterContext survives into parallel workers!?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Tom Lane wrote:
> Alvaro Herrera <alvherre@2ndquadrant.com> writes:
> > Tom Lane wrote:
> >> It looks to me like the reason for it is simply not having bothered to
> >> copy the rw->rw_worker data to somewhere that would survive deletion
> >> of the PostmasterContext.  I wonder though if anyone remembers a more
> >> fundamental reason?  Surely the bgworker is not supposed to touch any
> >> of the rest of the BackgroundWorkerList?
> 
> > I just checked BDR, which is the more complex code using workers I know
> > of, and I don't see any reason why this cannot be changed.
> 
> The attached patch passes "make check-world" for me.  Can you check it
> against BDR?

Just checked.  It works fine.

-- 
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



pgsql-hackers by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: New version numbering practices
Next
From: Joshua Bay
Date:
Subject: Re: Way to access LSN (for each transaction) by directly talking to postgres?