Re:

From: "cuke" <cukechina(at)hotmail(dot)com>
To: "He Weiping (Laser Henry)" <laser(at)zhengmai(dot)com(dot)cn>
Cc: postgres邮件列表 <pgsql-general(at)postgresql(dot)org>
Subject: Re:
Date: 2000-09-04 16:40:35
Message-ID: OE5kfb81IfpT8vWyu9k00001b0e@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

thank you very much!
But I can tar the old database ,if there is another way to move the datebase , please tell me or please tell me about your way detailed,thank you !
----- Original Message -----
From: He Weiping (Laser Henry) <laser(at)zhengmai(dot)com(dot)cn>
To: JinMing Qiu <cukechina(at)hotmail(dot)com>
Cc: <pgsql-general(at)postgresql(dot)org>
Sent: Monday, September 04, 2000 10:46 AM
Subject: Re: [GENERAL]

> JinMing Qiu wrote:
>
> > Hello everyone! How to move a postgresql database to another
> > directory?
>
> I think the procedure below would work:
>
> 1, create the new directory and assign the read write previlege to
> postgres superuser;
> 2, shut down all your postmaster using command like (assume you are
> using bash on linux):
> postgres(at)db$ killall -SIGTERM postmaster
> 3, move the totally data base to the new directory using command like:
>
> postgres(at)db$ tar cvf - /the_old_db_location | tar -C
> /the_new_db_location xvf -
>
> 4, remove the file in old location: (of course, make a backup is a good
> idea)
> postgres(at)db$ rm -r /the_old_db_location
>
> 5, make a symbol link to the new location, thus avoid the environment
> variable changes:
>
> postgres(at)db$ln -s /the_new_db_location /the_old_db_location
>
> 6, restart your postmaster:
> postgres(at)db$ (something you've used before)
>
> that's it
>
>
>

In response to

  • Re: at 2000-09-04 02:46:51 from He Weiping (Laser Henry)

Browse pgsql-general by date

  From Date Subject
Next Message Papp Gyozo 2000-09-04 16:53:47
Previous Message Ian Turner 2000-09-04 16:38:15 Re: subselect in CHECK constraint?