Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 856B04766F3 for ; Tue, 22 Oct 2002 11:19:47 -0400 (EDT) Received: from saturn.internet-bg.net (saturn.internet-bg.net [212.124.64.2]) by postgresql.org (Postfix) with ESMTP id 392984766D0 for ; Tue, 22 Oct 2002 11:19:45 -0400 (EDT) Received: from nesheff (ppp196.internet-bg.net [212.124.66.196]) by saturn.internet-bg.net (8.12.4/8.12.4) with ESMTP id g9MFGKbv028670; Tue, 22 Oct 2002 18:16:22 +0300 Message-ID: <010301c279e6$cf722b00$0b0546c0@alpha.bg> From: "Igor Georgiev" To: Cc: References: Subject: Re: Quickie about Database locations Date: Tue, 22 Oct 2002 18:19:32 +0200 Organization: Alpha Soft Ltd. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0100_01C279F7.91BC1260" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-RAVMilter-Version: 8.3.1(snapshot 20020108) (saturn) X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/189 X-Sequence-Number: 6047 This is a multi-part message in MIME format. ------=_NextPart_000_0100_01C279F7.91BC1260 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable 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 follo= wing: export PGDATA2=3D/bla/bla/bla initlocation PGDATA2 initlocation returns fine - telling me to create the database as per usua= l. 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=20=20=20=20 ********=20 export PGDATA2=3D/bla/bla/bla ... how about restart postmaster ? ------=_NextPart_000_0100_01C279F7.91BC1260 Content-Type: text/html; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Gareth Stationery
Hey all!
I'm muddled up about=20 something.
I'm creating a new database, and ab= solute=20 paths are disallowed.
Therefore I su to postgres ( the ow= ner of=20 the service ) and run the following:
 
export PGDATA2=3D/bla/bla/bla
initlocation PGDATA2
 
initlocation returns fine - telling= me to=20 create the database as per usual.
I therefore do:
 
createdb v2 -D 'PGDATA2'
 
But I get:
 
ERROR:  Postmaster environment= =20 variable 'PGDATA2' not set
createdb: database creation failed
 
I echo it - to test it - it=20 works.
I put it in the bash_profile of the= user,=20 restart postgres... nothing...
 
Any ideas   =20
********
export PGDATA2=3D/bla/bla/bla ...
how about restart postmaster ?=
 
------=_NextPart_000_0100_01C279F7.91BC1260--