Reply to comment

OSX Postgres Tip

Don't make the postgres user in the Users control panel. Just copy the www user from within NetInfo? manager. Also, you should create a postgres group for this user, and put it in that group.

It's nice to have it boot up to Postgres. You put the startup items into /Library/StartupItems?.

%mkdir POSTGRES
%cd POSTGRES
%cat > POSTGRES
#!/bin/sh
. /etc/rc.common
echo "Postgres : " ${POSTGRES}
if [ "${POSTGRES}" = "-YES-" ]; then
ConsoleMessage? "Starting Postgres Database Server"
/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data > /var/log/postgres 2>&1 &
fi
%cat > StartupParameters?.plist
{
Description = "postgres database server";
Provides = ("POSTGRES");
OrderPreference? = "None";
Messages =
{
start = "Starting postgres server";
stop = "Stopping postgres server";
};
}

That's it, pretty much. Delete leading spaces. If it's too cryptic, maybe you should not be running postgres quite yet.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <b> <dd> <dl> <dt> <i> <li> <ol> <u> <ul> <p> <br> <div> <pre> <code> <img><h1><h2><h3><h4> <blockquote>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

.