Skip site navigation (1) Skip section navigation (2)

Re: postgresql-7.1beta1 initdb error

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: James McMurry <jmcmurry(at)pobox(dot)com>
Cc: <pgsql-docs(at)postgresql(dot)org>
Subject: Re: postgresql-7.1beta1 initdb error
Date: 2001-01-04 17:32:55
Message-ID: Pine.LNX.4.30.0101041718010.1245-100000@peter.localdomain (view raw or flat)
Thread:
Lists: pgsql-docs
James McMurry writes:

> Enter new superuser password:
> Enter it again:
> The password file wasn't generated. Please report this problem.

Please apply to following patch to src/bin/initdb.sh:

diff -c -r1.118 initdb.sh
*** initdb.sh   2000/12/31 22:24:14     1.118
--- initdb.sh   2001/01/04 16:10:43
***************
*** 533,539 ****
      fi
      echo "ALTER USER \"$POSTGRES_SUPERUSERNAME\" WITH PASSWORD '$FirstPw'" \
        | "$PGPATH"/postgres $PGSQL_OPT template1 > /dev/null || exit_nicely
!     if [ ! -f $PGDATA/pg_pwd ]; then
          echo "The password file wasn't generated. Please report this problem." 1>&2
          exit_nicely
      fi
--- 533,539 ----
      fi
      echo "ALTER USER \"$POSTGRES_SUPERUSERNAME\" WITH PASSWORD '$FirstPw'" \
        | "$PGPATH"/postgres $PGSQL_OPT template1 > /dev/null || exit_nicely
!     if [ ! -f $PGDATA/global/pg_pwd ]; then
          echo "The password file wasn't generated. Please report this problem." 1>&2
          exit_nicely
      fi

Or you can just set the superuser password later if you're not up to
patching.

-- 
Peter Eisentraut      peter_e(at)gmx(dot)net       http://yi.org/peter-e/


In response to

pgsql-docs by date

Next:From: Ron ChmaraDate: 2001-01-05 10:37:32
Subject: Re: [GENERAL] RE: RE: Re: MySQL and PostgreSQL speed compare
Previous:From: James McMurryDate: 2001-01-04 15:50:02
Subject: postgresql-7.1beta1 initdb error

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group