pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Lendvary Gyorgy <gyurika@prolan.hu>
To: pgsql-sql@postgreSQL.org
Subject: createdb problem
Date: Wed, 18 Nov 1998 15:12:08 +0000
Message-ID: <3652E3C8.D35FCD5B@prolan.hu> (raw)

I use postgres v6.4. My standard database is in /usr/local/pgsql/data
directory and the PGDATA environment variable points to this database
directory. But I'd like to create another database into another
directory. So I tried this:
killall postmaster
initdb --pgdata=/home/postgres/database    --that's OK
postmaster -i -D /home/postgres/database -S -o -F
createdb -D /home/postgres/database  gazmuvek   --that's not good
    the answer is:
ERROR: Unable to locate path '/home/postgres/database/gazmuvek'
                 This may be due to a missing environment variable in
the server
After this I tried to type another command:
createdb gazmuvek
It was successfull, but the database 'gazmuvek' was created into
$PGDATA. But it wasn't my desire. I need the database 'gazmuvek' in the
directory: /home/postgres/database!


What is the solution?

Thank you in advance!




Message-ID: <3652E3C8.D35FCD5B@prolan.hu>
Permalink:  ../3652E3C8.D35FCD5B@prolan.hu/
Also on:    postgresql.org/message-id/3652E3C8.D35FCD5B@prolan.hu

 · 

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-sql@postgresql.org
  Cc: gyurika@prolan.hu
  Subject: Re: createdb problem
  In-Reply-To: <3652E3C8.D35FCD5B@prolan.hu>
  References: <3652E3C8.D35FCD5B@prolan.hu>

* 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