pg.ddx.io pgsql-admin@postgresql.org mailing list archive
help / color / mirror / Atom feedcreatedb failing
2+ messages / 2 participants
[nested] [flat]
* createdb failing
@ 2001-04-26 00:20 Aaron Brown <aaron@results-computing.net>
2001-04-26 05:18 ` Re: createdb failing Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: Aaron Brown @ 2001-04-26 00:20 UTC (permalink / raw)
To: pgsql-admin
I am trying to create a new database in an alternate location using
'initlocation' and 'createdb'.
The 'initlocation' utility appears to work, but 'createdb' always fails with the
following error:
"ERROR: The database path 'PGDATA2' is invalid. This may be due to a character
that is not allowed or because the chosen path isn't permitted for databases
createdb: database creation failed"
The path I am using is '/postgres/SERVICES', which does not appear to have
invalid characters.
I put the absolute path of the new location in the PGDATA2 environment variable,
which is visible to the postmaster because the variable is set at system startup
in /etc/profile.local.
I have tried 'initlocation' and 'createdb' using absolute paths (no environment
variable) and I always get the same error. I have even tried "CREATE DATABASE
WITH LOCATION" directly inside of psql.
I noticed that 'initlocation' created the new directory and a 'base'
subdirectory. The 'base' directory is empty. Should the 'base' directory be
empty?
I am running PostgreSQL 7.0.2 on a SuSE 7.0 x86 box.
Any help is greatly appreciated. Thank you.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: createdb failing
2001-04-26 00:20 createdb failing Aaron Brown <aaron@results-computing.net>
@ 2001-04-26 05:18 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2001-04-26 05:18 UTC (permalink / raw)
To: Aaron Brown <aaron@results-computing.net>; +Cc: pgsql-admin
Aaron Brown <aaron@results-computing.net> writes:
> I put the absolute path of the new location in the PGDATA2 environment
> variable, which is visible to the postmaster because the variable is
> set at system startup in /etc/profile.local.
Are you *sure* about that? The described symptoms certainly sound like
the postmaster does not see that environment variable.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-04-26 05:18 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-04-26 00:20 createdb failing Aaron Brown <aaron@results-computing.net>
2001-04-26 05:18 ` Tom Lane <tgl@sss.pgh.pa.us>
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