Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 35F46475F3F for ; Thu, 27 Jun 2002 22:27:56 -0400 (EDT) Mailbox-Line: From dmeil@acer-access.com Thu Jun 27 22:27:56 2002 Received: from server3.safepages.com (server3.safepages.com [216.127.146.5]) by postgresql.org (Postfix) with ESMTP id 49C04476E9B for ; Thu, 27 Jun 2002 22:22:42 -0400 (EDT) Received: from acer-access.com (04-183.127.popsite.net [66.217.49.183]) by server3.safepages.com (Postfix) with ESMTP id 67CB65E87 for ; Fri, 28 Jun 2002 02:22:45 +0000 (GMT) Message-ID: <3D1BC886.2A908335@acer-access.com> Date: Thu, 27 Jun 2002 22:23:02 -0400 From: daniel m X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.18 i686) X-Accept-Language: fr, en MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: Postmaster environment variables Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=1.0 required=5.0 tests=RCVD_IN_MULTIHOP_DSBL,X_RCVD_IN_UNCONFIRMED_DSBL, FUDGE_MULTIHOP_RELAY version=2.30 X-Spam-Level: * X-Archive-Number: 200206/231 X-Sequence-Number: 4665 I am trying to relocate my database, as per instructions in the manual: Under user postgres : sh-2.04$ PGDATA2=/home/postgres/data sh-2.04$ export PGDATA2 sh-2.04$ echo $PGDATA2 /home/postgres/data I stop the postmaster and : sh-2.04$ /usr/lib/postgresql/bin/initlocation PGDATA2 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 /home/postgres/data Fixing permissions on pre-existing directory /home/postgres/data/base initlocation is complete. (...) I restart the postmaster and : sh-2.04$ createdb planifgr -D 'PGDATA2' ERROR: Postmaster environment variable 'PGDATA2' not set createdb: database creation failed although : sh-2.04$ echo $PGDATA2 /home/postgres/data I even tried to set the variable from within the scripts (debian distr.) that start the backend (etc/init.d/postgresql). Same response. Where is the variable?