Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id 8DBF7477477 for ; Fri, 28 Jun 2002 11:45:43 -0400 (EDT) Mailbox-Line: From Fouad.Fezzi@iup.univ-avignon.fr Fri Jun 28 11:45:43 2002 Received: from D350.iup.univ-avignon.fr (D350.iup.univ-avignon.fr [194.57.216.30]) by postgresql.org (Postfix) with ESMTP id 74787477363 for ; Fri, 28 Jun 2002 10:52:07 -0400 (EDT) Received: from PCFOUAD (pc-fouad.iup.univ-avignon.fr [194.57.216.163]) by D350.iup.univ-avignon.fr (8.9.3 (PHNE_22672)/8.9.3) with SMTP id QAA23919 for ; Fri, 28 Jun 2002 16:52:31 +0200 (METDST) Message-ID: <072101c21eb6$2f86a6b0$a3d839c2@PCFOUAD> Reply-To: "Fouad Fezzi" From: "Fouad Fezzi" To: References: <3D1BC886.2A908335@acer-access.com> Subject: Re: Postmaster environment variables Date: Fri, 28 Jun 2002 17:12:14 +0200 Organization: IUP GMI MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.30 X-Spam-Level: X-Archive-Number: 200206/233 X-Sequence-Number: 4667 Hi daniel how do you start postmaster is it with -D ? If you don't fix problem i can send you script in debian that work with PGDATA variable. Fouad ----- Original Message ----- From: "daniel m" To: Sent: Friday, June 28, 2002 4:23 AM 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 > > >