Peter Eisentraut <[EMAIL PROTECTED]> writes:
>> 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'."
Unfortunately, I think that's just about what the default would need to
be. What alternative do you have to offer?
> The net result of this would be that the average user would have
> absolutely no clue what the default on his machine is.
Sure he would. Fire up the software and do "SHOW wal_use_fsync"
(or whatever we call it). I think the documentation could just say
"the default is platform-dependent".
> 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.
Well, that's exactly *why* we need an overridable default. Or would you
like to try to do some performance measurements in configure?
regards, tom lane
---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?
http://www.postgresql.org/users-lounge/docs/faq.html
- 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
- [HACKERS] Re: 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
- Re[4]: [HACKERS] Allowing WAL fsync... Xu Yifeng
