X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id D7B77D1D9F4 for ; Thu, 28 Aug 2003 10:22:52 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 95622-03 for ; Thu, 28 Aug 2003 07:22:23 -0300 (ADT) Received: from news.hub.org (unknown [64.117.224.194]) by svr1.postgresql.org (Postfix) with ESMTP id 3470AD1B8B9 for ; Thu, 28 Aug 2003 07:22:21 -0300 (ADT) Received: from news.hub.org (host-64-117-224-194.altec1.com [64.117.224.194] (may be forged)) by news.hub.org (8.12.9/8.12.9) with ESMTP id h7SAMGem057382 for ; Thu, 28 Aug 2003 10:22:20 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id h7SAG9hB056287 for pgsql-admin@postgresql.org; Thu, 28 Aug 2003 10:16:09 GMT From: Bruno LEVEQUE X-Newsgroups: comp.databases.postgresql.admin Subject: Re: How do i get the location or -D paramter to accept a windows Date: Thu, 28 Aug 2003 12:16:24 +0000 Organization: Hub.Org Networking Services Lines: 72 Message-ID: References: <56510AAEF435D240958D1CE8C6B1770AFD3975@mailc03.aurigin.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2) Gecko/20021126 X-Accept-Language: en-us, en In-Reply-To: <56510AAEF435D240958D1CE8C6B1770AFD3975@mailc03.aurigin.com> To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/335 X-Sequence-Number: 10055 The shell must be case sensitive. Try : [/]$ initlocation e:\pgDBs [/]$ createdb -D 'e:\pgDBs' testdb You see the differnce with yours ? (e:pgDBs) Chris Brown wrote: >Hi, > >I am trying to create a new database at the location E:\PGdbs on a >system running cygwin postgresql. > >If I try to set this location using pgAdmin II it errors out complaining >about the first character in the string. >If I try to set this location using the -D paramater of create the >following happens: >********************************************************************* >C:\Program Files\PostgreSQL\7.3\bin>bash >[/] $ initlocation e:\pgDBs >The location will be initialized with username "adminchris". >This user will own all the files and must also own the server process. > >Fixing permissions on pre-existing directory e:pgDBs >Fixing permissions on pre-existing directory e:pgDBs/base > >initlocation is complete. > >[/] $ createdb -D 'e:\pgDbs' testdb >ERROR: Postmaster environment variable 'e:pgDbs' not set >createdb: database creation failed >[/] $ initlocation e:/pgDBs >The location will be initialized with username "adminchris". >This user will own all the files and must also own the server process. > >Fixing permissions on pre-existing directory e:/pgDBs >Fixing permissions on pre-existing directory e:/pgDBs/base > >initlocation is complete. > >[/] $ createdb -D 'e:/pgDbs' testdb >ERROR: Relative paths are not allowed as database locations >createdb: database creation failed >[/] $ >************************************************************************ > >Is there a workaround of some kind? > >Thanks for any advice. >Chris > > > > >---------------------------(end of broadcast)--------------------------- >TIP 6: Have you searched our list archives? > > http://archives.postgresql.org > > > -- Bruno LEVEQUE System Engineer SARL NET6D