Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit350cb69

Browse files
committed
fsync patch from openlink
NOTE: FSYNC needs to be set at top of initdb.sh to enable use of fsyncpatches...disabled by default
1 parentfaf2193 commit350cb69

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

‎src/bin/initdb/initdb.sh

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
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
3333
PATH=$BINDIR:$PATH
3434
export PATH
3535

36+
# OPENLINK Added an fsync option to postmaster
37+
# REQUIRES: pg95 compiled with -DOPENLINK_PATCHES, see README_OPENLINK
38+
FSYNC=#-F
39+
3640
CMDNAME=`basename$0`
3741

3842
# ----------------
@@ -59,9 +63,9 @@ done
5963
# ----------------
6064
iftest"$debug" -eq 1
6165
then
62-
BACKENDARGS="-boot -C -d"
66+
BACKENDARGS="-boot -C$FSYNC-d"
6367
else
64-
BACKENDARGS="-boot -C -Q"
68+
BACKENDARGS="-boot -C$FSYNC-Q"
6569
fi
6670

6771

@@ -216,7 +220,9 @@ then
216220
echo"vacuuming template1"
217221
fi
218222

219-
echo"vacuum"| postgres -Q template1> /dev/null
223+
echo"vacuum"| postgres$FSYNC-Q template1> /dev/null
220224
fi
221225

222226
rm -f /tmp/create.$$
227+
228+
sync

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp