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 4ACB3D1B8EE for ; Wed, 27 Aug 2003 18:08:57 +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 76709-08 for ; Wed, 27 Aug 2003 15:08:26 -0300 (ADT) Received: from mailc03.aurigin.com (unknown [65.198.28.12]) by svr1.postgresql.org (Postfix) with ESMTP id 2C4FBD1B8B5 for ; Wed, 27 Aug 2003 15:08:25 -0300 (ADT) X-MimeOLE: Produced By Microsoft Exchange V6.0.4418.65 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: How do i get the location or -D paramter to accept a windows path using cygwin postgresql Date: Wed, 27 Aug 2003 11:08:25 -0700 Message-ID: <56510AAEF435D240958D1CE8C6B1770AFD3975@mailc03.aurigin.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How do i get the location or -D paramter to accept a windows path using cygwin postgresql Thread-Index: AcNsxl1NczJvx9KvTQqMbjKcDWT/4w== From: "Chris Brown" To: X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/329 X-Sequence-Number: 10051 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