Re: CREATE DATABASE WITH LOCATION

From: "Glen Parker" <glenebob(at)nwlink(dot)com>
To: "Pg-General" <pgsql-general(at)postgresql(dot)org>
Subject: Re: CREATE DATABASE WITH LOCATION
Date: 2001-11-14 00:28:23
Message-ID: 006801c16ca3$4535b020$0b01a8c0@johnpark.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Shane Wegner 2001-11-14 01:00:17 Obtaining value of last serial column after insert
Previous Message Glen Parker 2001-11-13 23:55:22 Re: CREATE DATABASE WITH LOCATION