Re: PGDATA

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: sasan3(at)gmail(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: PGDATA
Date: 2006-11-24 21:09:01
Message-ID: 20061124210901.5681.qmail@web31812.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> I just can't understand the use of this PGDATA variable!!!!!
>
> -I am on FC3. (pgl 7.4)
> -I am installing rpms and then running /etc/init.d/postgresql start
> (which is done by default)
> -The resulting "data" directory is in /var/lib/pgsql/data
>
> I now want the "data" directory to be on
> /home3/myreallylargepartition/pgsql/data
> so:
>
> -I login as postgres
> -I change .bash_profile so that PGDATA points at the new directory
> -I restart the server by doing a "/etc/init.d/postgresql restart"
>
> Shouldn't any new tables I create be in the new area?!!!!!
>

Well not really, I bet /etc/init.d/postgresql is getting its variables from
/etc/conf.d/postgresql. you will have to find it there and change it.

Regards,

Richard Broersma Jr.

In response to

  • PGDATA at 2006-11-24 12:43:02 from sasan3

Responses

  • Re: PGDATA at 2006-11-25 00:14:20 from sasan3@gmail.com

Browse pgsql-general by date

  From Date Subject
Next Message Richard Broersma Jr 2006-11-24 21:13:03 Re: How to restore a dumbed file in postgreSQL
Previous Message Richard Broersma Jr 2006-11-24 21:06:52 Re: IN clause