pgsql: Fix aboriginal bug in BufFileDumpBuffer that would cause it to

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix aboriginal bug in BufFileDumpBuffer that would cause it to
Date: 2007-06-01 23:43:11
Message-ID: 20070601234311.C62EB9FC473@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Modified Files:
--------------
pgsql/src/backend/storage/file:
buffile.c (r1.25 -> r1.26)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/file/buffile.c.diff?r1=1.25&r2=1.26)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2007-06-01 23:43:17 pgsql: Fix aboriginal bug in BufFileDumpBuffer that would cause it to
Previous Message Neil Conway 2007-06-01 23:40:20 pgsql: Allow leading and trailing whitespace in the input to the boolean