change installation directory of postgresql7

Mark Sergeant msergeant at
Wed Dec 1 14:10:55 PST 2004

I find a default install works fine and then change the pgsql users 
.profile and .cshrc and change the PGDATA directive to the correct 
location, eg. PGDATA=/data/db . Then run an initdb which will propogate 
the directory you choose.



On 02/12/2004, at 07:58, Ceri Davies wrote:

> On Wed, Dec 01, 2004 at 10:55:36PM +0100, A. Nooitgedagt wrote:
>> What does it take to make port databases/postgresql7
>> install in subdirectory /usr/local/pgsql ? The port's
>> default is /usr/local but postgresql's default is /usr/local/pgsql.
>> Is there another way than changing PREFIX in the port?
>> It doesn't seem to matter if I define
>> CONFIGURE_ARGS+= --prefix=${PREFIX}/pgsql
>> I think I have tried most other possibilities,
>> but I'm probably missing something
> Just define PREFIX.  By default though, the binaries will go in
> /usr/local/{s,}bin whilst the data directory will be /usr/local/pgsql -
> I've found that this is "right" for me.
> Ceri
> -- 
> Only two things are infinite, the universe and human stupidity, and I'm
> not sure about the former.			  -- Einstein (attrib.)

More information about the freebsd-ports mailing list