pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard J Kuhns <rjk@grauel.com>
To: pgsql-general@postgresql.org
Subject: Question about databases in alternate locations...
Date: Tue, 16 May 2000 10:25:48 -0500 (EST)
Message-ID: <14625.26748.356187.68826@localhost.grauel.com> (raw)

Could anyone please tell me what I'm doing wrong?  I'm sure I'm just
overlooking something, but what?

======================

moran:/acct$ id
uid=1007(postgres) gid=1003(postgres) groups=1003(postgres)
moran:/acct$ export P=/acct/pindybook
moran:/acct$ initlocation P
The location will be initialized with username "postgres".
This user will own all the files and must also own the server process.

Fixing permissions on pre-existing directory /acct/pindybook
Creating directory /acct/pindybook/base

initlocation is complete.
You can now create a database using
  CREATE DATABASE <name> WITH LOCATION = 'P'
in SQL, or
  createdb <name> -D 'P'
from the shell.

moran:/acct$ createdb indybook -D 'P'
ERROR:  The database path 'P' is invalid. This may be due to a character that is not allowed or because the chosen path isn't permitted for databases
createdb: database creation failed
moran:/acct$ ls -ld pindybook
drwx------  3 postgres  postgres  512 May 16 09:40 pindybook
moran:/acct$ ls -l pindybook
total 1
drwx------  2 postgres  postgres  512 May 16 09:40 base
moran:/acct$ 

======================

Thanks...

-- 
Richard Kuhns			rjk@grauel.com
PO Box 6249			Tel: (765)477-6000 \
100 Sawmill Road				    x319
Lafayette, IN  47903		     (800)489-4891 /



view thread (10+ messages)  latest in thread

Message-ID: <14625.26748.356187.68826@localhost.grauel.com>
Permalink:  ../14625.26748.356187.68826@localhost.grauel.com/
Also on:    postgresql.org/message-id/14625.26748.356187.68826@localhost.grauel.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: rjk@grauel.com, pgsql-general@postgresql.org
  Subject: Re: Question about databases in alternate locations...
  In-Reply-To: <14625.26748.356187.68826@localhost.grauel.com>
  References: <14625.26748.356187.68826@localhost.grauel.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox