Re: [BUGS] initdb and version 7 - Mailing list pgsql-bugs

From Peter Eisentraut
Subject Re: [BUGS] initdb and version 7
Date
Msg-id Pine.GSO.4.02A.10002291218380.14457-100000@Svan.DoCS.UU.SE
Whole thread Raw
In response to initdb and version 7  (michael <michael@systems.to>)
List pgsql-bugs
Platform, shell version, configure options? Details, man! ;)

On Wed, 1 Mar 2000, michael wrote:

> $ initdb --pgdata=/usr/local/pgsql.db
> This database system will be initialized with username "postgres". This
> user will own all the data files and must also own the server process.
> Fixing permissions on pre-existing data directory //usr/local/pgsql.db
> Creating database system directory /usr/local/pgsql.db/base Creating
> database XLOG directory /usr/local/pgsql.db/pg_xlog Creating template
> database in /usr/local/pgsql.db/base/template1
> /usr/local/pgsql/bin/initdb: line 441: 338 Broken pipe cat "$TEMPLATE"
> 339 | sed -e "s/PGUID//$POSTGRES_SUPERUSERID/g" 340 Segmentation fault
                       ^^
Ay, there's the rub. (I think.) This might make sed puke, though surely
not very socially friendly. Try removing this double backslash in initdb.

Alternatively, try removing any old or new postgres out of your path and
starting initdb with a full directory specification.

> |
> "$PGPATH"/postgres $FIRSTRUN template1 initdb failed. Removing
> /usr/local/pgsql.db. rm: cannot remove directory
> &pi0;/usr/local/pgsql.db': Permission denied Failed. Removing temp file
> /tmp/initdb.316.


--
Peter Eisentraut                  Sernanders vaeg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden

pgsql-bugs by date:

Previous
From: michael
Date:
Subject: initdb and version 7
Next
From: michael
Date:
Subject: Re: [BUGS] initdb and version 7