BackendPidGetProc doesn't return PGPROC for background worker? - Mailing list pgsql-hackers

From Pavel Stehule
Subject BackendPidGetProc doesn't return PGPROC for background worker?
Date
Msg-id CAFj8pRBaVGi0CKrv3PuZD8Vsws_i3vK_ZKmfhWgDodQqQT51dg@mail.gmail.com
Whole thread Raw
Responses Re: BackendPidGetProc doesn't return PGPROC for background worker?  (Amit Langote <Langote_Amit_f8@lab.ntt.co.jp>)
List pgsql-hackers
Hi

I am trying to start bgworker from bgworker and create communication between these process. I have a code based on test_shm_mq. This code fails because BackendPidGetProc doesn't find related bgworker process, although the registrant process is living

registrant = BackendPidGetProc(MyBgworkerEntry->bgw_notify_pid)

Is expected behave?

Regards

Pavel

pgsql-hackers by date:

Previous
From: "David G. Johnston"
Date:
Subject: Re: trust authentication behavior
Next
From: Jason Petersen
Date:
Subject: Query Deparsing Support