Re: Getting PostgreSQL server to run on Lion
Aaron Burghardt <[email protected]> Thu, 22 Mar 2012 08:57:15 -0400
| Newsgroups | gmane.comp.macosx.admin |
|---|---|
| Message-ID | <[email protected]> |
Please, don't confuse me with the facts. :-) Seriously, that does help. I no longer have a clean installation of Lion client for reference, but I do recall copying /usr/bin/postgres from machines with Lion Server. That file, though, is just a small Ruby script that uses wait4path to wait for the data directory to be mounted before calling postgres_real. There is a launchd file at /System/Library/LaunchDaemons/org.postgresql.postgres.plist, but it specifies /usr/bin/postgres. You can copy that to /Library/LaunchDaemons and edit the path, or symlink it to postgres_real. E.g., $ sudo ln -s postgres_real /usr/bin/postgres It should load automatically on reboot, or it can be started with: $ sudo launchctl load /System/Library/LaunchDaemons/org.postgresql.postgres.plist Aaron On Mar 22, 2012, at 7:27 AM, Axel Luttgens <[email protected]> wrote: > Le 22 mars 2012 à 10:59, Aaron Burghardt a écrit : > >> Apple shipped the PostgreSQL client libraries and related files in Lion. If you install Server, you will get the postgres backend, too. I have been able to get it running on Lion client by copying the postgres server and one or two other files to client. If you want details, let me know. >> >> Aaron >> >> On Mar 20, 2012, at 1:00 PM, Nathan Sims <[email protected]> wrote: >> >>> Yeah, I saw that... It basically says to give up and install your own PostgreSQL. Surely Apple isn't so retarded as to deliver a crippled PostgreSQL installation, forcing you to install your own! I've googled this till my fingertips bled but haven't found how to enable what's been delivered with the system. Surely there's a way! >>> > > Hmmm, > > /usr/bin/postgres_real *is* the server binary, and it comes with a Lion client OS. > When running it with --version, I get here: > > postgres (PostgreSQL) 9.0.5 > > > HTH, > Axel > > > _______________________________________________ > MacOSX-admin mailing list > [email protected] > http://www.omnigroup.com/mailman/listinfo/macosx-admin