aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-07-15 19:22:58 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-07-15 19:22:58 +0000
commit350cb69aed92a2b4209fac1e18d1636fb3e3a0aa (patch)
tree5afcaca243d99e4393e9de91ce9e8b817bf98a81
parentfaf21935d1221d097ce26bea9a0dac68efa00a18 (diff)
downloadpostgresql-350cb69aed92a2b4209fac1e18d1636fb3e3a0aa.tar.gz
postgresql-350cb69aed92a2b4209fac1e18d1636fb3e3a0aa.zip
fsync patch from openlink
NOTE: FSYNC needs to be set at top of initdb.sh to enable use of fsync patches...disabled by default
-rw-r--r--src/bin/initdb/initdb.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/bin/initdb/initdb.sh b/src/bin/initdb/initdb.sh
index 8e9044981f3..d15b1b4f52a 100644
--- a/src/bin/initdb/initdb.sh
+++ b/src/bin/initdb/initdb.sh
@@ -12,7 +12,7 @@
#
#
# 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
export PATH
+# OPENLINK Added an fsync option to postmaster
+# REQUIRES: pg95 compiled with -DOPENLINK_PATCHES, see README_OPENLINK
+FSYNC=#-F
+
CMDNAME=`basename $0`
# ----------------
@@ -59,9 +63,9 @@ done
# ----------------
if test "$debug" -eq 1
then
- BACKENDARGS="-boot -C -d"
+ BACKENDARGS="-boot -C $FSYNC -d"
else
- BACKENDARGS="-boot -C -Q"
+ BACKENDARGS="-boot -C $FSYNC -Q"
fi
@@ -216,7 +220,9 @@ then
echo "vacuuming template1"
fi
- echo "vacuum" | postgres -Q template1 > /dev/null
+ echo "vacuum" | postgres $FSYNC -Q template1 > /dev/null
fi
rm -f /tmp/create.$$
+
+sync