Re: CREATE DATABASE WITH LOCATION - Mailing list pgsql-general

From Glen Parker
Subject Re: CREATE DATABASE WITH LOCATION
Date
Msg-id 006801c16ca3$4535b020$0b01a8c0@johnpark.net
Whole thread Raw
In response to Re: CREATE DATABASE WITH LOCATION  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
> > service postgresql restart
>
> And what does that do?  My bet is that when you dig into it, you'll
> find it's not supplying the environment you expect to the postmaster.

ok, problem solved.
the postgres init script does:

su -l -s /bin/sh postgres blah blah

executing bash as sh causes it to not read .bash_profile.  it reads .profile
instead, which after a stock postgres install doesnt exist, and so the
environment never gets setup.

i did this:

ln -s .bash_profile .profile

and it did the trick.  maybe in future installs that should be done
automatically, or the init script modified to not specify a shell?

glen


pgsql-general by date:

Previous
From: Risko Peter
Date:
Subject: deferred check help
Next
From: Shane Wegner
Date:
Subject: Obtaining value of last serial column after insert