1212#
1313#
1414# IDENTIFICATION
15- # $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.1.1.1 1996/07/09 06 :22:13 scrappy Exp $
15+ # $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.2 1996/07/15 19 :22:58 scrappy Exp $
1616#
1717# -------------------------------------------------------------------------
1818
@@ -33,6 +33,10 @@ FILESDIR=$PGDATA/files
3333PATH=$BINDIR :$PATH
3434export PATH
3535
36+ # OPENLINK Added an fsync option to postmaster
37+ # REQUIRES: pg95 compiled with -DOPENLINK_PATCHES, see README_OPENLINK
38+ FSYNC=# -F
39+
3640CMDNAME=` basename$0 `
3741
3842# ----------------
5963# ----------------
6064if test " $debug " -eq 1
6165then
62- BACKENDARGS=" -boot -C -d"
66+ BACKENDARGS=" -boot -C$FSYNC -d"
6367else
64- BACKENDARGS=" -boot -C -Q"
68+ BACKENDARGS=" -boot -C$FSYNC -Q"
6569fi
6670
6771
216220echo " vacuuming template1"
217221fi
218222
219- echo " vacuum" | postgres -Q template1> /dev/null
223+ echo " vacuum" | postgres$FSYNC -Q template1> /dev/null
220224fi
221225
222226rm -f /tmp/create.$$
227+
228+ sync