RegisterBackgroundWorker does not actually start a bg worker process in 9.4.4 - Mailing list pgsql-general

From John Lumby
Subject RegisterBackgroundWorker does not actually start a bg worker process in 9.4.4
Date
Msg-id COL131-W797566963E38D7BFE52BFFA3B80@phx.gbl
Whole thread Raw
Responses Re: RegisterBackgroundWorker does not actually start a bg worker process in 9.4.4
List pgsql-general
I am new to bg_workers so this may be my user error,
but when I build and run the  contrib/worker_spi
extension,    I find that :

  .   starting postgres with the extension named in shared_preload_libraries :
      its _PG_init is invoked as expected but no process is started -
      it is as though RegisterBackgroundWorker did nothing

  .  creating the extension and then
psql ...  "select worker_spi_launch(2);" :
    I see
 28409 28288 ?        463508       00:05 00:00:00  0.0 postgres: bgworker: worker 2   
as expected.

Is there maybe some bug in postmaster's processing of
    workers marked as start_at = BgWorkerStart_RecoveryFinished
in 9.4.4?

Cheers,   John


pgsql-general by date:

Previous
From: Yaroslav
Date:
Subject: Re: Row count estimation bug in BETWEEN?
Next
From: Adrian Klaver
Date:
Subject: Re: localtime ?