Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f8IC3Xd15270 for ; Tue, 18 Sep 2001 08:03:33 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f8IBh3m90324 for pgsql-admin@postgresql.org; Tue, 18 Sep 2001 07:43:03 -0400 (EDT) (envelope-from news) From: Sven Riedel X-Newsgroups: comp.databases.postgresql.admin Subject: Problems setting up DB at a different location Date: Tue, 18 Sep 2001 11:43:01 +0000 (UTC) Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 29 Message-ID: <9o7c04$2o3p$1@news.tht.net> X-Complaints-To: scrappy@hub.org User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (Linux/2.4.7 (i686)) To: pgsql-admin@postgresql.org X-Archive-Number: 200109/91 X-Sequence-Number: 2192 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@gimp.org Osteroeder Str. 6 / App. 13 sven.riedel@tu-clausthal.de 38678 Clausthal "Call me bored, but don't call me boring." - Larry Wall