pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Quickie about Database locations
3+ messages / 2 participants
[nested] [flat]

* Quickie about Database locations
@ 2002-10-22 15:14 Gareth Kirwan <gbjk@thermeoneurope.com>
  2002-10-22 15:19 ` Re: Quickie about Database locations Gareth Kirwan <gbjk@thermeoneurope.com>
  2002-10-22 16:19 ` Re: Quickie about Database locations Igor Georgiev <gory@alphasoft-bg.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Gareth Kirwan @ 2002-10-22 15:14 UTC (permalink / raw)
  To: pgsql-admin

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?

Thanks everyone

Gareth Kirwan
Programming & Development,
Thermeon Europe Ltd,
gbjk@thermeoneurope.com
Tel: +44 (0) 1293 864 303
Thermeon Europe e-Card: gbjk

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Quickie about Database locations
  2002-10-22 15:14 Quickie about Database locations Gareth Kirwan <gbjk@thermeoneurope.com>
@ 2002-10-22 15:19 ` Gareth Kirwan <gbjk@thermeoneurope.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Gareth Kirwan @ 2002-10-22 15:19 UTC (permalink / raw)
  To: gbjk@thermeoneurope.com; pgsql-admin

Gareth StationeryQuick response too:

Shortly after sending the email I tried exactly what I said, with the
following alteration:
I put the lines in the .bash_profile first, then initlocation'd then I
exited and restarted postgres,
then I su'd back in - and tried the create - and bingo - it worked.

Sorry if I wasted anyone's time :-)

Regards

Gareth Kirwan

  -----Original Message-----
  From: pgsql-admin-owner@postgresql.org
[mailto:pgsql-admin-owner@postgresql.org]On Behalf Of Gareth Kirwan
  Sent: 22 October 2002 16:14
  To: pgsql-admin@postgresql.org
  Subject: [ADMIN] Quickie about Database locations


  Hey 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?

  Thanks everyone

  Gareth Kirwan
  Programming & Development,
  Thermeon Europe Ltd,
  gbjk@thermeoneurope.com
  Tel: +44 (0) 1293 864 303
  Thermeon Europe e-Card: gbjk

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Quickie about Database locations
  2002-10-22 15:14 Quickie about Database locations Gareth Kirwan <gbjk@thermeoneurope.com>
@ 2002-10-22 16:19 ` Igor Georgiev <gory@alphasoft-bg.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Igor Georgiev @ 2002-10-22 16:19 UTC (permalink / raw)
  To: gbjk@thermeoneurope.com; +Cc: pgsql-admin

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 ?

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2002-10-22 16:19 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-10-22 15:14 Quickie about Database locations Gareth Kirwan <gbjk@thermeoneurope.com>
2002-10-22 15:19 ` Gareth Kirwan <gbjk@thermeoneurope.com>
2002-10-22 16:19 ` Igor Georgiev <gory@alphasoft-bg.com>

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