Tom Lane writes: > "Mikheev, Vadim" <[EMAIL PROTECTED]> writes: > > ... I would either > > use fsync as default or don't deal with O_SYNC at all. > > But if O_DSYNC is defined and O_DSYNC != O_SYNC then we should > > use O_DSYNC by default. > > Hm. We could do that reasonably painlessly as a compile-time test in > xlog.c, but I'm not clear on how it would play out as a GUC option. > Peter, what do you think about configuration-dependent defaults for > GUC variables? We have plenty of those already, but we should avoid a variable whose specification is: "The default is 'on' if your system defines one of the macros O_SYNC, O_DSYNC, O_FSYNC, and if O_SYNC and O_DSYNC are distinct, otherwise the default is 'off'." The net result of this would be that the average user would have absolutely no clue what the default on his machine is. Additionally consider that maybe O_SYNC and O_DSYNC have different values but the kernel treats them the same anyway. We really shouldn't try to guess that far. -- Peter Eisentraut [EMAIL PROTECTED] http://yi.org/peter-e/ ---------------------------(end of broadcast)--------------------------- TIP 2: you can get off all lists at once with the unregister command (send "unregister YourEmailAddressHere" to [EMAIL PROTECTED])
- Re: [HACKERS] Allowing WAL fsyn... Tom Lane
- Re: [HACKERS] Allowing WAL fsyn... Bruce Momjian
- RE: [HACKERS] Allowing WAL fsync to be done via O_SYNC Mikheev, Vadim
- Re: [HACKERS] Allowing WAL fsync to be done via O_SY... Tom Lane
- Re: [HACKERS] Allowing WAL fsync to be done via ... Alfred Perlstein
- Re: [HACKERS] Allowing WAL fsync to be done ... Peter Eisentraut
- Re: [HACKERS] Allowing WAL fsync to be d... Alfred Perlstein
- Re: [HACKERS] Allowing WAL fsync to... Tom Lane
- Re: [HACKERS] Allowing WAL fsyn... Alfred Perlstein
- Re: [HACKERS] Allowing WAL fsync to be done ... Lamar Owen
- Re: [HACKERS] Allowing WAL fsync to be done via ... Peter Eisentraut
- Re: [HACKERS] Allowing WAL fsync to be done ... Tom Lane
- [HACKERS] Re: Allowing WAL fsync to be d... Thomas Lockhart
- Re: [HACKERS] Allowing WAL fsync to be done ... Bruce Momjian
- Re: [HACKERS] Allowing WAL fsync to be done via O_SY... Bruce Momjian
- RE: [HACKERS] Allowing WAL fsync to be done via O_SYNC Mikheev, Vadim
- Re: [HACKERS] Allowing WAL fsync to be done via O_SY... Alfred Perlstein
- Re: [HACKERS] Allowing WAL fsync to be done via ... Tom Lane
- Re: [HACKERS] Allowing WAL fsync to be done ... Alfred Perlstein
- Re[2]: [HACKERS] Allowing WAL fsync to be do... Xu Yifeng
- Re: Re[2]: [HACKERS] Allowing WAL fsync ... Alfred Perlstein