aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gist/gistutil.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-08-06 11:50:23 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2022-08-06 11:50:23 -0400
commit811203d4aff505c414e4a9e8c57ea6bb3edfe92e (patch)
tree226e9b4683b84d60b06b0ae60e3c4929b1fe6820 /src/backend/access/gist/gistutil.c
parent6390bc740f902557cad40106708a5d40c6e3389e (diff)
downloadpostgresql-811203d4aff505c414e4a9e8c57ea6bb3edfe92e.tar.gz
postgresql-811203d4aff505c414e4a9e8c57ea6bb3edfe92e.zip
Fix data-corruption hazard in WAL-logged CREATE DATABASE.
RelationCopyStorageUsingBuffer thought it could skip copying empty pages, but of course that does not work at all, because subsequent blocks will be out of place. Also fix it to acquire share lock on the source buffer. It *might* be safe to not do that, but it's not very certain, and I don't think this code deserves any benefit of the doubt. Dilip Kumar, per complaint from me Discussion: https://postgr.es/m/3679800.1659654066@sss.pgh.pa.us
Diffstat (limited to 'src/backend/access/gist/gistutil.c')
0 files changed, 0 insertions, 0 deletions