• Tom Lane's avatar
    Another round of code cleanup on bufmgr. Use BM_VALID flag to keep track · 95a03e9c
    Tom Lane authored
    of whether we have successfully read data into a buffer; this makes the
    error behavior a bit more transparent (IMHO anyway), and also makes it
    work correctly for local buffers which don't use Start/TerminateBufferIO.
    Collapse three separate functions for writing a shared buffer into one.
    This overlaps a bit with cleanups that Neil proposed awhile back, but
    seems not to have committed yet.
    95a03e9c
buf_internals.h 6.45 KB