pgsql: Provide modern examples of how to auto-start Postgres on macOS.

Started by Tom Laneover 8 years ago1 messagescomitters
Jump to latest
#1Tom Lane
tgl@sss.pgh.pa.us

Provide modern examples of how to auto-start Postgres on macOS.

The scripts in contrib/start-scripts/osx don't work at all on macOS
10.10 (Yosemite) or later, because they depend on SystemStarter which
Apple deprecated long ago and removed in 10.10. Add a new subdirectory
contrib/start-scripts/macos with scripts that use the newer launchd
infrastructure.

Since this problem is independent of which Postgres version you're using,
back-patch to all supported branches.

Discussion: /messages/by-id/31338.1510763554@sss.pgh.pa.us

Branch
------
REL9_3_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/77b76fea94cdffe0e936292103780a45d7e0ddb3

Modified Files
--------------
contrib/start-scripts/macos/README | 24 +++++++++++++++++++++
.../macos/org.postgresql.postgres.plist | 17 +++++++++++++++
contrib/start-scripts/macos/postgres-wrapper.sh | 25 ++++++++++++++++++++++
contrib/start-scripts/osx/README | 5 +++++
4 files changed, 71 insertions(+)