|
23 | 23 | # Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
|
24 | 24 | # Portions Copyright (c) 1994, Regents of the University of California
|
25 | 25 | #
|
26 |
| -# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.121 2001/02/18 18:33:59 momjian Exp $ |
| 26 | +# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.122 2001/03/13 21:37:15 petere Exp $ |
27 | 27 | #
|
28 | 28 | #-------------------------------------------------------------------------
|
29 | 29 |
|
@@ -117,8 +117,19 @@ elif [ -x "$bindir/postgres" ]; then
|
117 | 117 | then
|
118 | 118 | PGPATH=$bindir
|
119 | 119 | else
|
120 |
| -echo"The program '$bindir/postgres' needed by$CMDNAME does not belong to"1>&2 |
121 |
| -echo"PostgreSQL version$VERSION. Check your installation."1>&2 |
| 120 | +# Maybe there was an error message? |
| 121 | + errormsg=`$bindir/postgres -V2>&1>/dev/null` |
| 122 | + ( |
| 123 | +echo"The program" |
| 124 | +echo" '$bindir/postgres'" |
| 125 | +echo"needed by$CMDNAME does not belong to PostgreSQL version$VERSION, or" |
| 126 | +echo"there may be a configuration problem." |
| 127 | +iftest x"$errormsg"!= x"";then |
| 128 | +echo |
| 129 | +echo"This was the error message issued by that program:" |
| 130 | +echo"$errormsg" |
| 131 | +fi |
| 132 | + )1>&2 |
122 | 133 | exit 1
|
123 | 134 | fi
|
124 | 135 | else
|
@@ -638,9 +649,11 @@ echo "VACUUM pg_database" \
|
638 | 649 | echo
|
639 | 650 | echo"Success. You can now start the database server using:"
|
640 | 651 | echo""
|
641 |
| -echo"$PGPATH/postmaster -D$PGDATA" |
| 652 | +echo"$PGPATH/postmaster -D$PGDATA" |
642 | 653 | echo"or"
|
643 |
| -echo"$PGPATH/pg_ctl -D$PGDATA start" |
| 654 | +# (Advertise -l option here, otherwise we have a background |
| 655 | +# process writing to the terminal.) |
| 656 | +echo"$PGPATH/pg_ctl -D$PGDATA -l logfile start" |
644 | 657 | echo
|
645 | 658 |
|
646 | 659 | exit 0
|