Content-Length: 276589 | pFad | http://github.com/postgrespro/postgres/commit/1961b1c131e4211f3dc86ff2be971e430ab2a23d

C9 Fix generation of SP-GiST vacuum WAL records. · postgrespro/postgres@1961b1c · GitHub
Skip to content

Commit 1961b1c

Browse files
committed
Fix generation of SP-GiST vacuum WAL records.
I broke these in 8776faa. Backpatch to 9.4, where that was done.
1 parent 2effb72 commit 1961b1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/access/spgist/spgvacuum.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ vacuumLeafRoot(spgBulkDeleteState *bds, Relation index, Buffer buffer)
452452
xlrec.node = index->rd_node;
453453
STORE_STATE(&bds->spgstate, xlrec.stateSrc);
454454

455-
ACCEPT_RDATA_DATA(&xlrec, sizeof(xlrec), 0);
455+
ACCEPT_RDATA_DATA(&xlrec, SizeOfSpgxlogVacuumRoot, 0);
456456
/* sizeof(xlrec) should be a multiple of sizeof(OffsetNumber) */
457457
ACCEPT_RDATA_DATA(toDelete, sizeof(OffsetNumber) * xlrec.nDelete, 1);
458458
ACCEPT_RDATA_BUFFER(buffer, 2);
@@ -585,7 +585,7 @@ vacuumRedirectAndPlaceholder(Relation index, Buffer buffer)
585585
{
586586
XLogRecPtr recptr;
587587

588-
ACCEPT_RDATA_DATA(&xlrec, sizeof(xlrec), 0);
588+
ACCEPT_RDATA_DATA(&xlrec, SizeOfSpgxlogVacuumRedirect, 0);
589589
ACCEPT_RDATA_DATA(itemToPlaceholder, sizeof(OffsetNumber) * xlrec.nToPlaceholder, 1);
590590
ACCEPT_RDATA_BUFFER(buffer, 2);
591591

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/1961b1c131e4211f3dc86ff2be971e430ab2a23d

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy