Re: postgresql-7.1beta1 initdb error - Mailing list pgsql-docs

From Peter Eisentraut
Subject Re: postgresql-7.1beta1 initdb error
Date
Msg-id Pine.LNX.4.30.0101041718010.1245-100000@peter.localdomain
Whole thread Raw
In response to postgresql-7.1beta1 initdb error  ("James McMurry" <jmcmurry@pobox.com>)
List 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@gmx.net       http://yi.org/peter-e/


pgsql-docs by date:

Previous
From: "James McMurry"
Date:
Subject: postgresql-7.1beta1 initdb error
Next
From: Mustapha Amrani
Date:
Subject: nested query