pgsql: Fix aboriginal bug in BufFileDumpBuffer that would cause it to - Mailing list pgsql-committers

From tgl@postgresql.org (Tom Lane)
Subject pgsql: Fix aboriginal bug in BufFileDumpBuffer that would cause it to
Date
Msg-id 20070601234328.2C3409FC4A3@postgresql.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
Fix aboriginal bug in BufFileDumpBuffer that would cause it to write the
wrong data when dumping a bufferload that crosses a component-file boundary.
This probably has not been seen in the wild because (a) component files are
normally 1GB apiece and (b) non-block-aligned buffer usage is relatively
rare.  But it's fairly easy to reproduce a problem if one reduces RELSEG_SIZE
in a test build.  Kudos to Kurt Harriman for spotting the bug.

Tags:
----
REL8_0_STABLE

Modified Files:
--------------
    pgsql/src/backend/storage/file:
        buffile.c (r1.21 -> r1.21.4.1)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/file/buffile.c.diff?r1=1.21&r2=1.21.4.1)

pgsql-committers by date:

Previous
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix aboriginal bug in BufFileDumpBuffer that would cause it to
Next
From: tgl@postgresql.org (Tom Lane)
Date:
Subject: pgsql: Fix aboriginal bug in BufFileDumpBuffer that would cause it to