Re: createdb confusion

From: Mike Mascari <mascarm(at)mascari(dot)com>
To: newsreader(at)mediaone(dot)net
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: createdb confusion
Date: 2001-08-09 00:48:52
Message-ID: 3B71DDF4.7B023458@mascari.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

newsreader(at)mediaone(dot)net wrote:
>
...
> > I try (as postgres user)
> >
> > $ createdb -D /bla bla
> >
> > and it says
> >
> > absolute path are not allowed.
> >
> > Then I read man initlocation. The example
> > I see is
> >
> > $ initlocation /opt/postgres/data
> > $ createdb -D /opt/postgres/data/testdb testdb
> >
> > so I do the same and it fails with the same reason
> >
> > Does anyone have any idea?

How about:

export PGDATA2=/opt/postgres/data
initlocation PGDATA2
createdb -D PGDATA2 mydb

I haven't created databases in alternate locations, so I'm just
going by the manual. ;-)

Mike Mascari
mascarm(at)mascari(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mike Mascari 2001-08-09 01:37:00 Re: createdb confusion
Previous Message newsreader 2001-08-09 00:23:45 Re: createdb confusion