Re: [Q] createdb for existing directory

From: Alfred Perlstein <bright(at)wintelcom(dot)net>
To: "Roderick A(dot) Anderson" <raanders(at)altoplanos(dot)net>
Cc: "PostgreSQL::General List" <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: [Q] createdb for existing directory
Date: 2000-10-16 18:42:28
Message-ID: 20001016114228.L272@fw.wintelcom.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

* Roderick A. Anderson <raanders(at)altoplanos(dot)net> [001016 11:38] wrote:
> Typically when I want to place a database on a different partition I
> create it then copy all the stuff from the new databases directory(s) to
> the new partition followed by a mount. I check things out and then
> unmount the partition remove all the stuff in the database directories,
> remount, and then update /etc/fstab for the system.
>
> Seems to work but it is a kludgy method to do it. What I'd like to do
> is mount the partition before doing a createdb.
>
> Will this work with 7.1? (I'm writing up some instructions that I'd like
> to not have to change later.)

huh? How are you copying to an unmounted partition?

Afaik you need the device node to be mounted before you can write to
it.

--
-Alfred Perlstein - [bright(at)wintelcom(dot)net|alfred(at)freebsd(dot)org]
"I have the heart of a child; I keep it in a jar on my desk."

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2000-10-16 18:45:24 Re: dump vs dumpall
Previous Message Roderick A. Anderson 2000-10-16 18:36:58 [Q] createdb for existing directory