Question about databases in alternate locations...

From: Richard J Kuhns <rjk(at)grauel(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Question about databases in alternate locations...
Date: 2000-05-16 15:25:48
Message-ID: 14625.26748.356187.68826@localhost.grauel.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers pgsql-sql

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(at)grauel(dot)com
PO Box 6249 Tel: (765)477-6000 \
100 Sawmill Road x319
Lafayette, IN 47903 (800)489-4891 /

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-05-16 15:39:47 Re: Performance
Previous Message Samuel A. Mullen 2000-05-16 15:19:59 ODBC Question for 7.0

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Hoffmann 2000-05-16 15:47:38 Re: Question about databases in alternate locations...
Previous Message Bruce Momjian 2000-05-16 15:01:16 Re: Berkeley DB license

Browse pgsql-sql by date

  From Date Subject
Next Message Kyle Bateman 2000-05-16 15:26:18 Index not used in functions in 7.0?
Previous Message Wallingford, Ted 2000-05-16 13:45:55 pattern matching operator