From: | Sven Riedel <sven(dot)riedel(at)tu-clausthal(dot)de> |
---|---|
To: | pgsql-admin(at)postgresql(dot)org |
Subject: | Problems setting up DB at a different location |
Date: | 2001-09-18 11:43:01 |
Message-ID: | 9o7c04$2o3p$1@news.tht.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
Hi,
I'm trying to place a database on a different harddisk than the default one
PostgreSQL uses. I've read and followed the instructions of the User
Documentation Sections 6.1.1 and 10.2.
export PGDATA2="/data/db"
initlocation PGDATA2
so far, so good, everything worked.
But now, when I createdb mydb -D PGDATA2 from the commandline or
CREATE DATABASE mydb WITH LOCATION = 'PGDATA2';
from psql, I get the message
ERROR: Postmaster environment variable 'PGDATA2' not set
despite it being set, obviously. Trying to SET it again from within psql
resulted in being told that 'pgdata2' was not a valid option name.
This is PostgreSQL 7.1.2 from the Debian Linux distribution.
Can anyone point me to what I'm doing wrong?
Regs,
Sven
--
Sven Riedel sr(at)gimp(dot)org
Osteroeder Str. 6 / App. 13 sven(dot)riedel(at)tu-clausthal(dot)de
38678 Clausthal "Call me bored, but don't call me boring."
- Larry Wall
From | Date | Subject | |
---|---|---|---|
Next Message | Miguel González | 2001-09-18 18:02:41 | Registring a C function in PostgreSQL |
Previous Message | Morgan Curley | 2001-09-18 03:24:18 | postmaster pid and ps |