Skip to content
Snippets Groups Projects
  • Tom Lane's avatar
    ad429572
    Create a new dedicated Postgres process, "wal writer", which exists to write · ad429572
    Tom Lane authored
    and fsync WAL at convenient intervals.  For the moment it just tries to
    offload this work from backends, but soon it will be responsible for
    guaranteeing a maximum delay before asynchronously-committed transactions
    will be flushed to disk.
    
    This is a portion of Simon Riggs' async-commit patch, committed to CVS
    separately because a background WAL writer seems like it might be a good idea
    independently of the async-commit feature.  I rebased walwriter.c on
    bgwriter.c because it seemed like a more appropriate way of handling signals;
    while the startup/shutdown logic in postmaster.c is more like autovac because
    we want walwriter to quit before we start the shutdown checkpoint.
    ad429572
    History
    Create a new dedicated Postgres process, "wal writer", which exists to write
    Tom Lane authored
    and fsync WAL at convenient intervals.  For the moment it just tries to
    offload this work from backends, but soon it will be responsible for
    guaranteeing a maximum delay before asynchronously-committed transactions
    will be flushed to disk.
    
    This is a portion of Simon Riggs' async-commit patch, committed to CVS
    separately because a background WAL writer seems like it might be a good idea
    independently of the async-commit feature.  I rebased walwriter.c on
    bgwriter.c because it seemed like a more appropriate way of handling signals;
    while the startup/shutdown logic in postmaster.c is more like autovac because
    we want walwriter to quit before we start the shutdown checkpoint.