1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-05 23:56:58 +03:00

fsync patch from openlink

NOTE: FSYNC needs to be set at top of initdb.sh to enable use of fsync
	patches...disabled by default
This commit is contained in:
Marc G. Fournier 1996-07-15 19:22:58 +00:00
parent faf21935d1
commit 350cb69aed

View File

@ -12,7 +12,7 @@
# #
# #
# IDENTIFICATION # IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.1.1.1 1996/07/09 06:22:13 scrappy Exp $ # $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.2 1996/07/15 19:22:58 scrappy Exp $
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -33,6 +33,10 @@ FILESDIR=$PGDATA/files
PATH=$BINDIR:$PATH PATH=$BINDIR:$PATH
export PATH export PATH
# OPENLINK Added an fsync option to postmaster
# REQUIRES: pg95 compiled with -DOPENLINK_PATCHES, see README_OPENLINK
FSYNC=#-F
CMDNAME=`basename $0` CMDNAME=`basename $0`
# ---------------- # ----------------
@ -59,9 +63,9 @@ done
# ---------------- # ----------------
if test "$debug" -eq 1 if test "$debug" -eq 1
then then
BACKENDARGS="-boot -C -d" BACKENDARGS="-boot -C $FSYNC -d"
else else
BACKENDARGS="-boot -C -Q" BACKENDARGS="-boot -C $FSYNC -Q"
fi fi
@ -216,7 +220,9 @@ then
echo "vacuuming template1" echo "vacuuming template1"
fi fi
echo "vacuum" | postgres -Q template1 > /dev/null echo "vacuum" | postgres $FSYNC -Q template1 > /dev/null
fi fi
rm -f /tmp/create.$$ rm -f /tmp/create.$$
sync