From: Chris Brown <cbrown@aurigin.com>
To: pgsql-admin@postgresql.org
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> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: cbrown@aurigin.com
Subject: Re: How do i get the location or -D paramter to accept a windows path using cygwin postgresql
In-Reply-To: <56510AAEF435D240958D1CE8C6B1770AFD3975@mailc03.aurigin.com>
References: <56510AAEF435D240958D1CE8C6B1770AFD3975@mailc03.aurigin.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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