MacPorts Postgres


port -d install postgresql84-server


...
--->  Creating launchd control script
###########################################################
# A startup item has been generated that will aid in
# starting postgresql84-server with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo port load postgresql84-server
###########################################################
DEBUG: checking for mtree violations
DEBUG: port installs files in /Library/LaunchDaemons
--->  Installing postgresql84-server @8.4.4_0
DEBUG: install phase started at Tue Jun 29 17:22:20 PDT 2010
DEBUG: Executing org.macports.install (postgresql84-server)
DEBUG: installing directory: /opt/local/var/macports/software/postgresql84-server/8.4.4_0/Library
DEBUG: installing directory: /opt/local/var/macports/software/postgresql84-server/8.4.4_0/Library/LaunchDaemons
DEBUG: installing link: /opt/local/var/macports/software/postgresql84-server/8.4.4_0/Library/LaunchDaemons/org.macports.postgresql84-server.plist
DEBUG: installing directory: /opt/local/var/macports/software/postgresql84-server/8.4.4_0/opt
DEBUG: installing directory: /opt/local/var/macports/software/postgresql84-server/8.4.4_0/opt/local
DEBUG: installing directory: /opt/local/var/macports/software/postgresql84-server/8.4.4_0/opt/local/etc
DEBUG: installing directory: /opt/local/var/macports/software/postgresql84-server/8.4.4_0/opt/local/etc/LaunchDaemons
DEBUG: installing directory: /opt/local/var/macports/software/postgresql84-server/8.4.4_0/opt/local/etc/LaunchDaemons/org.macports.postgresql84-server
DEBUG: installing file: /opt/local/var/macports/software/postgresql84-server/8.4.4_0/opt/local/etc/LaunchDaemons/org.macports.postgresql84-server/org.macports.postgresql84-server.plist
DEBUG: installing file: /opt/local/var/macports/software/postgresql84-server/8.4.4_0/opt/local/etc/LaunchDaemons/org.macports.postgresql84-server/postgresql84-server.wrapper
DEBUG: installing directory: /opt/local/var/macports/software/postgresql84-server/8.4.4_0/opt/local/var
DEBUG: installing directory: /opt/local/var/macports/software/postgresql84-server/8.4.4_0/opt/local/var/log
DEBUG: installing directory: /opt/local/var/macports/software/postgresql84-server/8.4.4_0/opt/local/var/log/postgresql84
DEBUG: installing file: /opt/local/var/macports/software/postgresql84-server/8.4.4_0/opt/local/var/log/postgresql84/postgres.log
DEBUG: Executing proc-post-org.macports.install-install-0

To create a database instance, after install do
 sudo mkdir -p /opt/local/var/db/postgresql84/defaultdb
 sudo chown postgres:postgres /opt/local/var/db/postgresql84/defaultdb
 sudo su postgres -c '/opt/local/lib/postgresql84/bin/initdb -D /opt/local/var/db/postgresql84/defaultdb'

To tweak your DBMS, consider increasing kern.sysv.shmmax by adding an increased kern.sysv.shmmax .. to /etc/sysctl.conf
DEBUG: activate phase started at Tue Jun 29 17:22:21 PDT 2010
DEBUG: Executing org.macports.activate (postgresql84-server)
--->  Activating postgresql84-server @8.4.4_0
DEBUG: activating directory: /
DEBUG: activating directory: /Library
DEBUG: activating directory: /Library/LaunchDaemons
DEBUG: activating link: /Library/LaunchDaemons/org.macports.postgresql84-server.plist
DEBUG: activating directory: /opt
DEBUG: activating directory: /opt/local
DEBUG: activating directory: /opt/local/etc
DEBUG: activating directory: /opt/local/etc/LaunchDaemons
DEBUG: activating directory: /opt/local/etc/LaunchDaemons/org.macports.postgresql84-server
DEBUG: activating file: /opt/local/etc/LaunchDaemons/org.macports.postgresql84-server/org.macports.postgresql84-server.plist
DEBUG: activating file: /opt/local/etc/LaunchDaemons/org.macports.postgresql84-server/postgresql84-server.wrapper
DEBUG: activating directory: /opt/local/var
DEBUG: activating directory: /opt/local/var/log
DEBUG: activating directory: /opt/local/var/log/postgresql84
DEBUG: activating file: /opt/local/var/log/postgresql84/postgres.log

Topic revision: 30 Jun 2010, JamesBusser
 
Download.png
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback
Powered by Olark