Re: Patch: Add launchd Support

From: Marti Raudsepp <marti(at)juffo(dot)org>
To: Wim Lewis <wiml(at)omnigroup(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Patch: Add launchd Support
Date: 2014-10-21 09:30:33
Message-ID: CABRT9RCrN-ft5a8cugUhtWf3dV0T0Bi851nOAtCg4HvAc2fprw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Oct 21, 2014 at 3:53 AM, Wim Lewis <wiml(at)omnigroup(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Marti Raudsepp 2014-10-21 10:00:35 Re: [PATCH] Simplify EXISTS subqueries containing LIMIT
Previous Message Etsuro Fujita 2014-10-21 08:40:11 Re: inherit support for foreign tables