pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Harold <tgh@tgharold.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Problems when initdb on WinXP with SP2.
Date: Sat, 26 Nov 2005 23:42:55 -0500
Message-ID: <4389394F.8080205@tgharold.com> (raw)
In-Reply-To: <1f55ed4c0511240202l742ecd41ofe568cafae80b995@mail.gmail.com>
References: <1f55ed4c0511240202l742ecd41ofe568cafae80b995@mail.gmail.com>

Johnson Zhao wrote:

> Hi,
> 
> I use Postgresql 8.03/ 8.04 on windows xp with sp2, all have same problems.
> 
> run the windows cmd by:
> 
> runas /user:postgres cmd
> 
> and run the initdb program like:
> 
> initdb --locale=C --username=postgres -W -A md5 -E UNICODE -D ../data
> 
> then it says:
> 
> creating directory ../data/ ... ok
> creating directory ../data/global ... ok
> creating directory ../data/pg_xlog ... ok
> creating directory ../data/pg_xlog/archive_status ... ok
> creating directory ../data/pg_clog ... ok
> creating directory ../data/pg_subtrans ... ok
> creating directory ../data/base ... ok
> creating directory ../data/base/1 ... ok
> creating directory ../data/pg_tblspc ... ok
> selecting default max_connections  ....
> 
> and the command window stayed there!

I have no idea whether this matters or not, but I got bit during an 8.1 
install by permissions issues.  The postgres user requires read/write 
permissions for the data folder and below, but it also requires read 
permissions all the way back to the root of the drive (including the 
root directory).

The specific situation for us was that we were trying to install to 
D:\PostgreSQL\Data, but the postgres user didn't have read permissions 
on the root of D:\ (or D:\PostgreSQL).



view thread (5+ messages)  latest in thread

Message-ID: <4389394F.8080205@tgharold.com>
Permalink:  ../4389394F.8080205@tgharold.com/
Also on:    postgresql.org/message-id/4389394F.8080205@tgharold.com

 · 

reply

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: tgh@tgharold.com
  Subject: Re: Problems when initdb on WinXP with SP2.
  In-Reply-To: <4389394F.8080205@tgharold.com>
  References: <1f55ed4c0511240202l742ecd41ofe568cafae80b995@mail.gmail.com> <4389394F.8080205@tgharold.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