mirror of
https://github.com/postgres/postgres.git
synced 2025-04-21 12:05:57 +03:00
Fix generation of SP-GiST vacuum WAL records.
I broke these in 8776faa81cb651322b8993422bdd4633f1f6a487. Backpatch to 9.4, where that was done.
This commit is contained in:
parent
2effb72e68
commit
1961b1c131
@ -452,7 +452,7 @@ vacuumLeafRoot(spgBulkDeleteState *bds, Relation index, Buffer buffer)
|
|||||||
xlrec.node = index->rd_node;
|
xlrec.node = index->rd_node;
|
||||||
STORE_STATE(&bds->spgstate, xlrec.stateSrc);
|
STORE_STATE(&bds->spgstate, xlrec.stateSrc);
|
||||||
|
|
||||||
ACCEPT_RDATA_DATA(&xlrec, sizeof(xlrec), 0);
|
ACCEPT_RDATA_DATA(&xlrec, SizeOfSpgxlogVacuumRoot, 0);
|
||||||
/* sizeof(xlrec) should be a multiple of sizeof(OffsetNumber) */
|
/* sizeof(xlrec) should be a multiple of sizeof(OffsetNumber) */
|
||||||
ACCEPT_RDATA_DATA(toDelete, sizeof(OffsetNumber) * xlrec.nDelete, 1);
|
ACCEPT_RDATA_DATA(toDelete, sizeof(OffsetNumber) * xlrec.nDelete, 1);
|
||||||
ACCEPT_RDATA_BUFFER(buffer, 2);
|
ACCEPT_RDATA_BUFFER(buffer, 2);
|
||||||
@ -585,7 +585,7 @@ vacuumRedirectAndPlaceholder(Relation index, Buffer buffer)
|
|||||||
{
|
{
|
||||||
XLogRecPtr recptr;
|
XLogRecPtr recptr;
|
||||||
|
|
||||||
ACCEPT_RDATA_DATA(&xlrec, sizeof(xlrec), 0);
|
ACCEPT_RDATA_DATA(&xlrec, SizeOfSpgxlogVacuumRedirect, 0);
|
||||||
ACCEPT_RDATA_DATA(itemToPlaceholder, sizeof(OffsetNumber) * xlrec.nToPlaceholder, 1);
|
ACCEPT_RDATA_DATA(itemToPlaceholder, sizeof(OffsetNumber) * xlrec.nToPlaceholder, 1);
|
||||||
ACCEPT_RDATA_BUFFER(buffer, 2);
|
ACCEPT_RDATA_BUFFER(buffer, 2);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user