• Tom Lane's avatar
    Force pg_database updates out to disk immediately after ALTER DATABASE; · b2a2f4ce
    Tom Lane authored
    this is to avoid scenarios where incoming backends find no live copies
    of a database's row because the only live copy is in an as-yet-unwritten
    shared buffer, which they can't see.  Also, use FlushRelationBuffers()
    for forcing out pg_database, instead of the much more expensive BufferSync().
    There's no need to write out pages belonging to other relations.
    b2a2f4ce
dbcommands.c 35.3 KB