diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-01-06 00:04:20 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-01-06 00:04:20 +0000 |
commit | 304160c3e270e6db75e109c149799d09b6f1461b (patch) | |
tree | 7f0ed6f8a8624b500b0b6b543ad852d0002b29ed /src/backend/access/gist/gistproc.c | |
parent | 6d41b144e900ab772f11960e828d032bda0a5f12 (diff) | |
download | postgresql-304160c3e270e6db75e109c149799d09b6f1461b.tar.gz postgresql-304160c3e270e6db75e109c149799d09b6f1461b.zip |
Fix ReadBuffer() to correctly handle the case where it's trying to extend
the relation but it finds a pre-existing valid buffer. The buffer does not
correspond to any page known to the kernel, so we *must* do smgrextend to
ensure that the space becomes allocated. The 7.x branches all do this
correctly, but the corner case got lost somewhere during 8.0 bufmgr rewrites.
(My fault no doubt :-( ... I think I assumed that such a buffer must be
not-BM_VALID, which is not so.)
Diffstat (limited to 'src/backend/access/gist/gistproc.c')
0 files changed, 0 insertions, 0 deletions