pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Igor Georgiev <gory@alphasoft-bg.com>
To: gbjk@thermeoneurope.com
Cc: pgsql-admin@postgresql.org
Subject: Re: Quickie about Database locations
Date: Tue, 22 Oct 2002 18:19:32 +0200
Message-ID: <010301c279e6$cf722b00$0b0546c0@alpha.bg> (raw)
References: <KMEELFAKJGHIGGNIDGHDCEPKJOAA.gbjk@thermeoneurope.com>

Gareth StationeryHey all!
  I'm muddled up about something.
  I'm creating a new database, and absolute paths are disallowed.
  Therefore I su to postgres ( the owner of the service ) and run the following:

  export PGDATA2=/bla/bla/bla
  initlocation PGDATA2

  initlocation returns fine - telling me to create the database as per usual.
  I therefore do:

  createdb v2 -D 'PGDATA2'

  But I get:

  ERROR:  Postmaster environment variable 'PGDATA2' not set
  createdb: database creation failed

  I echo it - to test it - it works.
  I put it in the bash_profile of the user, restart postgres... nothing...

  Any ideas    
******** 
export PGDATA2=/bla/bla/bla ...
how about restart postmaster ?

view thread (3+ messages)

Message-ID: <010301c279e6$cf722b00$0b0546c0@alpha.bg>
Permalink:  ../010301c279e6$cf722b00$0b0546c0@alpha.bg/
Also on:    postgresql.org/message-id/010301c279e6$cf722b00$0b0546c0@alpha.bg

 · 

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: gory@alphasoft-bg.com, gbjk@thermeoneurope.com
  Subject: Re: Quickie about Database locations
  In-Reply-To: <010301c279e6$cf722b00$0b0546c0@alpha.bg>
  References: <KMEELFAKJGHIGGNIDGHDCEPKJOAA.gbjk@thermeoneurope.com> <010301c279e6$cf722b00$0b0546c0@alpha.bg>

* 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