BackendPidGetProc doesn't return PGPROC for background worker?

From: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: BackendPidGetProc doesn't return PGPROC for background worker?
Date: 2015-05-14 20:01:40
Message-ID: CAFj8pRBaVGi0CKrv3PuZD8Vsws_i3vK_ZKmfhWgDodQqQT51dg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Jason Petersen 2015-05-14 20:02:34 Query Deparsing Support
Previous Message David G. Johnston 2015-05-14 19:52:40 Re: trust authentication behavior