Skip to content
Snippets Groups Projects
  • Konstantin Osipov's avatar
    59d0e081
    Thread-based WAL writer: a piecewise port. · 59d0e081
    Konstantin Osipov authored
    This patch introduces wal_mode configuration variable,
    which can take either "fsync" or "fsync_delay" values.
    
    In "fsync" mode, we open the write ahead log in O_SYNC
    mode, and thus sync every write to disk.
    
    Th fsync_delay mode is the backward-compatible mode:
    in this mode, we only do fsync once every fsync_delay
    seconds. If fsync_delay is 0, there is no fsync.
    
    Otherwise, this patch is only adding auxiliary headers,
    object files, etc.
    59d0e081
    History
    Thread-based WAL writer: a piecewise port.
    Konstantin Osipov authored
    This patch introduces wal_mode configuration variable,
    which can take either "fsync" or "fsync_delay" values.
    
    In "fsync" mode, we open the write ahead log in O_SYNC
    mode, and thus sync every write to disk.
    
    Th fsync_delay mode is the backward-compatible mode:
    in this mode, we only do fsync once every fsync_delay
    seconds. If fsync_delay is 0, there is no fsync.
    
    Otherwise, this patch is only adding auxiliary headers,
    object files, etc.