pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fouad Fezzi <Fouad.Fezzi@iup.univ-avignon.fr>
To: pgsql-admin@postgresql.org
Subject: Re: Postmaster environment variables
Date: Fri, 28 Jun 2002 17:12:14 +0200
Message-ID: <072101c21eb6$2f86a6b0$a3d839c2@PCFOUAD> (raw)
References: <3D1BC886.2A908335@acer-access.com>

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" <dmeil@acer-access.com>
To: <pgsql-admin@postgresql.org>
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
> 
> 
> 






view thread (4+ messages)  latest in thread

Message-ID: <072101c21eb6$2f86a6b0$a3d839c2@PCFOUAD>
Permalink:  ../072101c21eb6$2f86a6b0$a3d839c2@PCFOUAD/
Also on:    postgresql.org/message-id/072101c21eb6$2f86a6b0$a3d839c2@PCFOUAD

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: Fouad.Fezzi@iup.univ-avignon.fr
  Subject: Re: Postmaster environment variables
  In-Reply-To: <072101c21eb6$2f86a6b0$a3d839c2@PCFOUAD>
  References: <3D1BC886.2A908335@acer-access.com> <072101c21eb6$2f86a6b0$a3d839c2@PCFOUAD>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox