From 90ff767d14dfc21180977d5d152774b56a58915e Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 10 Jan 1997 17:40:07 +0000 Subject: I found the following bugs in the version 6.0 (dated 961229). At least the first two should be fixed before the final release of 6.0. 1) There is a mismatch between the type declared in the catalog for the input/output attributes of pg_type and the actual type of values stored in the table. The type of typinput, typoutput, typsend and typreceive are declared oid (26) while the values are regproc (24). The error was there also in previous versions but nobody noticed it until an Assert has been added in ExecEvalVar. The effect is that it is now impossible to replace the typoutput of existing data types with new procs. 2) The identd hba fails after the first time because the data read from the identd socket is not zero-terminated and strlen reports an incorrect length if the stack contains garbage, which usually happens after the first connection has been made. 3) The new initdb wants to create itself the data directory. This implies that the parent directory must be writable by postgres and this may not always be desirable. A better solution would be to allow the directory to be created by root and then filled by initdb. It would also nice to have some reasonable default for PGLIB and PGDATA like the previous version did. This applies also to the postmaster executable. --- src/bin/initdb/initdb.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/bin/initdb') diff --git a/src/bin/initdb/initdb.sh b/src/bin/initdb/initdb.sh index f0c406586d7..c0b9512b2fc 100644 --- a/src/bin/initdb/initdb.sh +++ b/src/bin/initdb/initdb.sh @@ -26,7 +26,7 @@ # # # IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.20 1996/12/23 08:50:27 bryanh Exp $ +# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.21 1997/01/10 17:39:40 momjian Exp $ # #------------------------------------------------------------------------- @@ -217,9 +217,9 @@ echo # umask must disallow access to group, other for files and dirs umask 077 -if [ -d "$PGDATA" ]; then +if [ -f "$PGDATA/PG_VERSION" ]; then if [ $template_only -eq 0 ]; then - echo "$CMDNAME: error: Directory $PGDATA already exists." + echo "$CMDNAME: error: File $PGDATA/PG_VERSION already exists." echo "This probably means initdb has already been run and the " echo "database system already exists." echo -- cgit v1.2.3