Re: [HACKERS] src/test/subscription/t/002_types.pl hanging on particular environment - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [HACKERS] src/test/subscription/t/002_types.pl hanging on particular environment
Date
Msg-id 15034.1505879633@sss.pgh.pa.us
Whole thread Raw
In response to Re: [HACKERS] src/test/subscription/t/002_types.pl hanging onparticular environment  (Craig Ringer <craig@2ndquadrant.com>)
Responses Re: [HACKERS] src/test/subscription/t/002_types.pl hanging onparticular environment  (Amit Kapila <amit.kapila16@gmail.com>)
Re: [HACKERS] src/test/subscription/t/002_types.pl hanging onparticular environment  (Craig Ringer <craig@2ndquadrant.com>)
Re: [HACKERS] src/test/subscription/t/002_types.pl hanging onparticular environment  (Petr Jelinek <petr.jelinek@2ndquadrant.com>)
List pgsql-hackers
Craig Ringer <craig@2ndquadrant.com> writes:
> On 19 September 2017 at 18:04, Petr Jelinek <petr.jelinek@2ndquadrant.com>
> wrote:
>> If you are asking why they are not identified by the
>> BackgroundWorkerHandle, then it's because it's private struct and can't
>> be shared with other processes so there is no way to link the logical
>> worker info with bgworker directly.

> I really want BackgroundWorkerHandle to be public, strong +1 from me.

I'm confused about what you think that would accomplish.  AFAICS, the
point of BackgroundWorkerHandle is to allow the creator/requestor of
a bgworker to verify whether or not the slot in question is still
"owned" by its request.  This is necessarily not useful to any other
process, since they didn't make the request.

The thought I had in mind upthread was to get rid of logicalrep slots
in favor of expanding the underlying bgworker slot with some additional
fields that would carry whatever extra info we need about a logicalrep
worker.  Such fields could also be repurposed for additional info about
other kinds of bgworkers, when (not if) we find out we need that.
        regards, tom lane


-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: [HACKERS] Setting pd_lower in GIN metapage
Next
From: Amit Kapila
Date:
Subject: Re: [HACKERS] src/test/subscription/t/002_types.pl hanging onparticular environment