|
7 | 7 | * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
8 | 8 | * Portions Copyright (c) 1994, Regents of the University of California
|
9 | 9 | *
|
10 |
| - * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.209 2005/07/23 15:29:47 momjian Exp $ |
| 10 | + * $PostgreSQL: pgsql/src/backend/access/transam/xlog.c,v 1.210 2005/07/23 15:31:16 momjian Exp $ |
11 | 11 | *
|
12 | 12 | *-------------------------------------------------------------------------
|
13 | 13 | */
|
|
47 | 47 | #include"utils/relcache.h"
|
48 | 48 |
|
49 | 49 |
|
50 |
| -/* |
51 |
| - *Becauase O_DIRECT bypasses the kernel buffers, and because we never |
52 |
| - *read those buffers except during crash recovery, it seems like |
53 |
| - *a win to use it in all cases. |
54 |
| - */ |
55 |
| -#ifdefO_DIRECT |
56 |
| -#definePG_O_DIRECTO_DIR(enableFsync ? (open_sync_bit | O_DIRECT) : 0) |
57 |
| -#else |
58 |
| - |
59 | 50 | /*
|
60 | 51 | * This chunk of hackery attempts to determine which file sync methods
|
61 | 52 | * are available on the current platform, and to choose an appropriate
|
|