Skip site navigation (1) Skip section navigation (2)

Re: Moving data directory

From: "Srinivas Kotapally" <ksrinivas(at)coriendo(dot)com>
To: "'Linux Geeks'" <indolinux(dot)geeks(at)gmail(dot)com>,<pgsql-admin(at)postgresql(dot)org>
Subject: Re: Moving data directory
Date: 2007-05-12 20:43:29
Message-ID: 027701c794d6$32e921c0$800101df@srinilaptop (view raw or flat)
Thread:
Lists: pgsql-admin
No this will permanently change it.  Check out the documentation:
http://www.postgresql.org/docs/8.2/interactive/server-start.html
http://www.postgresql.org/docs/8.2/interactive/app-initdb.html

Cheers

Srinivas 

-----Original Message-----
From: Linux Geeks [mailto:indolinux(dot)geeks(at)gmail(dot)com] 
Sent: Saturday, May 12, 2007 1:58 PM
To: ksrinivas(at)coriendo(dot)com; pgsql-admin(at)postgresql(dot)org
Subject: Re: [ADMIN] Moving data directory

Hi Srinivas,

Is it permanently change it ? Do I have to change some entry in configuration
file ?

Regards,

Dino

On 5/12/07, Srinivas Kotapally <ksrinivas(at)coriendo(dot)com> wrote:
> You can do an initdb -d /var/lib/postgresql  to initialize the data 
> directory in the /var/lib/postgresql directory.  If you also have data 
> in the /usr/lib/postgresql - make sure you back it up and restore it 
> in the new directory.
>
> ---------------------------(end of 
> broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>        subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
>        message can get through to the mailing list cleanly
>
>


--
To Analyze Is To Know Batte Field, Differ from Battle Itself


In response to

pgsql-admin by date

Next:From: Jim C. NasbyDate: 2007-05-12 22:05:37
Subject: Re: User rights
Previous:From: Linux GeeksDate: 2007-05-12 17:57:57
Subject: Re: Moving data directory

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group