pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedHow do i get the location or -D paramter to accept a windows path using cygwin postgresql
2+ messages / 2 participants
[nested] [flat]
* How do i get the location or -D paramter to accept a windows path using cygwin postgresql
@ 2003-08-27 18:08 Chris Brown <cbrown@aurigin.com>
0 siblings, 1 reply; 2+ messages in thread
From: Chris Brown @ 2003-08-27 18:08 UTC (permalink / raw)
To: pgsql-admin
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: How do i get the location or -D paramter to accept a windows
@ 2003-08-28 12:16 Bruno LEVEQUE <bruno.leveque@net6d.com>
parent: Chris Brown <cbrown@aurigin.com>
0 siblings, 0 replies; 2+ messages in thread
From: Bruno LEVEQUE @ 2003-08-28 12:16 UTC (permalink / raw)
To: pgsql-admin
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-08-28 12:16 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-08-27 18:08 How do i get the location or -D paramter to accept a windows path using cygwin postgresql Chris Brown <cbrown@aurigin.com>
2003-08-28 12:16 ` Re: How do i get the location or -D paramter to accept a windows Bruno LEVEQUE <bruno.leveque@net6d.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