Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 12EE54774F1 for ; Fri, 28 Jun 2002 12:02:15 -0400 (EDT) Mailbox-Line: From nickf@ontko.com Fri Jun 28 12:02:15 2002 Received: from shire.ontko.com (shire.ontko.com [199.164.165.1]) by postgresql.org (Postfix) with ESMTP id 78C914775BD for ; Fri, 28 Jun 2002 11:12:15 -0400 (EDT) Received: from nick (bilbo.ontko.com [199.164.165.101]) by shire.ontko.com (8.9.3/8.9.3/Debian 8.9.3-21) with SMTP id KAA04333; Fri, 28 Jun 2002 10:12:19 -0500 X-Authentication-Warning: shire.ontko.com: Host bilbo.ontko.com [199.164.165.101] claimed to be nick Reply-To: From: "Nick Fankhauser" To: "daniel m" , Subject: Re: Postmaster environment variables Date: Fri, 28 Jun 2002 10:15:38 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal In-Reply-To: <3D1BC886.2A908335@acer-access.com> X-Spam-Status: No, hits=-4.1 required=5.0 tests=IN_REP_TO,X_AUTH_WARNING version=2.30 X-Spam-Level: X-Archive-Number: 200206/235 X-Sequence-Number: 4668 Daniel- When you restart postmaster, the process isn't getting this env variable because it isn't defined in .profile for your postgres user or in a shell file that .profile executes. On Debian Linux, you could set this in /var/lib/postgres/.profile or /etc/postgresql/postgresql.env Regards, -Nick -------------------------------------------------------------------------- Nick Fankhauser nickf@ontko.com Phone 1.765.935.4283 Fax 1.765.962.9788 Ray Ontko & Co. Software Consulting Services http://www.ontko.com/ > -----Original Message----- > From: pgsql-admin-owner@postgresql.org > [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of daniel m > Sent: Thursday, June 27, 2002 9:23 PM > To: pgsql-admin@postgresql.org > Subject: [ADMIN] Postmaster environment variables > > > 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? > > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > >