Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f8J6Gse68456 for ; Wed, 19 Sep 2001 02:16:55 -0400 (EDT) (envelope-from olly@lfix.co.uk) Received: from lfix.demon.co.uk ([158.152.59.127] helo=linda.lfix.co.uk) by anchor-post-31.mail.demon.net with esmtp (Exim 2.12 #1) id 15jaeV-000OVW-0V; Wed, 19 Sep 2001 07:16:08 +0100 Received: from lfix.co.uk (olly@localhost [127.0.0.1]) by linda.lfix.co.uk (8.12.0/8.12.0/Debian -1) with ESMTP id f8J4DmIn018151; Wed, 19 Sep 2001 05:13:48 +0100 Message-Id: <200109190413.f8J4DmIn018151@linda.lfix.co.uk> X-Mailer: exmh version 2.3.1 01/18/2001 (debian 2.3.1-1) with nmh-1.0.4+dev X-URL: http://www.lfix.co.uk/oliver X-face: "xUFVDj+ZJtL_IbURmI}!~xAyPC"Mrk=MkAm&tPQnNq(FWxv49R}\>0oI8VM?O2VY+N7@F- KMLl*!h}B)u@TW|B}6 cc: pgsql-admin@postgresql.org Subject: Re: Problems setting up DB at a different location In-reply-to: Message from Sven Riedel of Tue, 18 Sep 2001 11:43:01 -0000. <9o7c04$2o3p$1@news.tht.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 19 Sep 2001 05:13:48 +0100 From: "Oliver Elphick" X-Archive-Number: 200109/95 X-Sequence-Number: 2196 Sven Riedel wrote: >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. Was it set and exported in the postmaster's environment? -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight http://www.lfix.co.uk/oliver PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47 GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C ======================================== "Bring ye all the tithes into the storehouse, that there may be meat in mine house, and prove me now herewith, saith the LORD of hosts, if I will not open you the windows of heaven, and pour you out a blessing, that there shall not be room enough to receive it." Malachi 3:10