Re: Patch: Add launchd Support - Mailing list pgsql-hackers

From Marti Raudsepp
Subject Re: Patch: Add launchd Support
Date
Msg-id CABRT9RCrN-ft5a8cugUhtWf3dV0T0Bi851nOAtCg4HvAc2fprw@mail.gmail.com
Whole thread Raw
In response to Re: Patch: Add launchd Support  (Wim Lewis <wiml@omnigroup.com>)
List pgsql-hackers
On Tue, Oct 21, 2014 at 3:53 AM, Wim Lewis <wiml@omnigroup.com> wrote:
> I think the idea of OnDemand is for launchd items to act a bit like inetd
> does: launchd creates the listening socket (or mach port or file-change
> notification) on the port specified in the plist, and only starts the
> process when someone tries to connect to it. This might not be a terrible
> thing to support, but it would require more changes throughout postgres
> (postmaster would have to check in with launchd at start time to get the
> listen socket; ports and socket paths would no longer be specifiable in
> postgres’ config, etc) and I’m skeptical that it’d be worth the work
> without a more concrete motivation.

systemd socket activation on Linux works pretty much the same way. If
this will ever be implemented, it's most reasonable to tackle both
launchd and systemd together.

Regards,
Marti



pgsql-hackers by date:

Previous
From: Etsuro Fujita
Date:
Subject: Re: inherit support for foreign tables
Next
From: Marti Raudsepp
Date:
Subject: Re: [PATCH] Simplify EXISTS subqueries containing LIMIT