Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJlEE-0002e7-9u for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Nov 2017 19:07:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJlED-0001I8-Py for pgsql-hackers@arkaria.postgresql.org; Tue, 28 Nov 2017 19:07:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eJlED-0001Hq-Hi for pgsql-hackers@lists.postgresql.org; Tue, 28 Nov 2017 19:07:33 +0000 Received: from mail-pl0-x233.google.com ([2607:f8b0:400e:c01::233]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eJlE9-0000fb-Ck for pgsql-hackers@postgresql.org; Tue, 28 Nov 2017 19:07:32 +0000 Received: by mail-pl0-x233.google.com with SMTP id bd8so487424plb.9 for ; Tue, 28 Nov 2017 11:07:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=j2PBbIETwpZRnajEHFkC2SM7yy5CYk50kG8jZCpBtaI=; b=Hy+kF6BVvfYYNjoXJL1h2SJXCLEOUQHjvAJQx0/6ZZL4IBKOQBOzCuQWDniCV/s3KY aKsHhcvKSBKi+wZbItGShRLAwOhkjyhjUxuNd4mFmdEYk05aavbrOHdX4Cyg6NjN5+0r J/i+tZdA7PjILdQMmyKJLmJ9EvXbC7uNrTQatoJf3BOJPAPRAFnlAXvbTnqwYOLVa6Mh TinrCj8RYS2gSNQ8gciWkYJxilgRGwb3kGtNpJ/fTOWe8mAf/2ZNCSrAgubWpu8YXxpp rsHqYm0zDGy0GpUyjIeF5McR47uLavWAd3SSRxK+IOrZcmY3JrppNRklz+4RWsJ3qkgm c+Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=j2PBbIETwpZRnajEHFkC2SM7yy5CYk50kG8jZCpBtaI=; b=HYIjE76owjW1KlcUtkwZyve1g9cBD2ARzSufypztYKpI7GeKMwd+VBc3U2CuDvQMW3 7M4wlsYRt0Dy+hwS4B+UEeGDis00VIE/TKHR+/crWkK9nM+kBT4W9C4nFRih+f7L9AHt TnrnskWPMudtrIy48d8swiBmP7PY0cYawryseoHtA6kmWWphnyGGQTy3ln8ZLz44nYcz 7jRkFSGwrll5eq4BX5DgykTDYeMVHaxjyQzgHKDtvroEGB1jbOwgbkzXuqalZdpwj3QD WclNYAt0pCzmjchRchCQhi7vHGwFwJxkdEwTb8HBba0K3XINzKK+szIROfX6dF3TqdTX 0TDg== X-Gm-Message-State: AJaThX4zSNqZPNweTaVHbawN7arj9pQAlaqkSxX1Q2MFH6TJEYu3a2BJ Wx05CRQDpZlRDSjU95kFc+w= X-Google-Smtp-Source: AGs4zMa+Ie5ZIhpKc+A9CKDQGVQdZN7uQ6znkYgXuV+xuHhroMpSRqxbwbg+LaaJ/aEZybasOEEh7w== X-Received: by 10.84.211.110 with SMTP id b101mr193566pli.266.1511896046579; Tue, 28 Nov 2017 11:07:26 -0800 (PST) Received: from [192.168.2.121] ([172.92.45.130]) by smtp.gmail.com with ESMTPSA id f83sm61158410pfj.23.2017.11.28.11.07.25 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Nov 2017 11:07:25 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Updated macOS start scripts From: Mark Dilger In-Reply-To: Date: Tue, 28 Nov 2017 11:07:24 -0800 Cc: pgsql-hackers@postgreSQL.org Content-Transfer-Encoding: quoted-printable Message-Id: <173420E2-64DB-4802-9EB2-AEFB11F46045@gmail.com> References: <31338.1510763554@sss.pgh.pa.us> <6D443E39-13C2-4185-9FE4-B5CB416AB06E@gmail.com> <21689.1510772433@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3124) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Nov 15, 2017, at 12:02 PM, Mark Dilger = wrote: >=20 >=20 >> On Nov 15, 2017, at 11:00 AM, Tom Lane wrote: >>=20 >> Mark Dilger writes: >>>> On Nov 15, 2017, at 8:32 AM, Tom Lane wrote: >>>> The stuff in contrib/start-scripts/osx/ does not, as far as I know, >>>> work at all on any recent release of macOS, because SystemStarter >>>> is long gone. I propose replacing it with the attached, which >>>> I've tested on current-vintage Macs. >>=20 >>> Overall, I think supporting 10.10 and greater is more relevant than = continuing >>> to support 10.4 and earlier, though I suppose someone could argue = for >>> keeping both in side-by-side files with the README directing users = which to >>> use for whichever version of OS X they happen to be running. It's = of no >>> consequence to me, since my oldest mac is running 10.6.8, but = somebody >>> from the museum of old macs might feel differently. >>=20 >> Well, we have no buildfarm coverage before 10.4, so to my mind those >> releases are desupported already. In practice I wonder whether = anyone >> is really running PG on such old releases anyway. Certainly I = wouldn't >> think they'd be making new PG installations on machines that old. >=20 > I have tested this on 10.11.6. I had no trouble following the = instructions > in the README and everything worked as described. >=20 > As far as I can tell, this patch has not yet been submitted to any = commitfest. > I would mark it Read for Committer. Upon further review, I have noticed that `pg_ctl stop` does not work = once the org.postgresql.postgres service has been started. I was trying to = stop, reinstall and re-initdb and restart postgres and this service was a = pita. I had to go back to your osx.patch to remind myself what I had done and only = then could I stop the service and continue my work. Is there any way this patch could be improved to work nicely with = pg_ctl? It seems that `pg_ctl stop` indeed stops the postgres process, but the = system launches a new one so quickly that pg_ctl thinks the service has not = stopped, and it just waits forever (or until it times out, depending on your = settings). If nothing else, the instructions in the patch about how to turn this = feature on should have big warning flags about how pg_ctl won't work once you do = this. mark=