background worker and normal exit

From: Fujii Masao <masao(dot)fujii(at)gmail(dot)com>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: background worker and normal exit
Date: 2013-05-25 21:16:41
Message-ID: CAHGQGwFP=sE4bda=8E8BaUH=kVgvvEGy0Tvpi_RzuQ6ii5k_0g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

I found that the normal exit (i.e., with exit code 0) of bgworker
always leads to
the immediate restart of bgworker whatever bgw_restart_time is. Is
this intentional?
Not only crash but also normal exit should go along with bgw_restart_time?

I'm now writing the bgworker which is allowed to be running only
during recovery.
After recovery ends, that bgworker is expected to exit with code 0. I
was thinking
to avoid the restart of the bgworker after normal exit, by using
BGW_NEVER_RESTART.

Regards,

--
Fujii Masao

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2013-05-25 22:37:13 Re: getting rid of freezing
Previous Message Alvaro Herrera 2013-05-25 20:56:48 Re: pg_export_snapshot on standby side