mirror of
https://github.com/postgres/postgres.git
synced 2025-05-11 05:41:32 +03:00
Fix gin_desc routine to match the WAL format.
In the GIN incomplete-splits patch, I used BlockIdDatas to store the block number of left and right children, when inserting a downlink after a split to an internal page posting list page. But gin_desc thought they were stored as BlockNumbers.
This commit is contained in:
parent
da8a716089
commit
97c19e6c38
@ -56,9 +56,9 @@ gin_desc(StringInfo buf, uint8 xl_info, char *rec)
|
|||||||
BlockNumber leftChildBlkno;
|
BlockNumber leftChildBlkno;
|
||||||
BlockNumber rightChildBlkno;
|
BlockNumber rightChildBlkno;
|
||||||
|
|
||||||
memcpy(&leftChildBlkno, payload, sizeof(BlockNumber));
|
leftChildBlkno = BlockIdGetBlockNumber((BlockId) payload);
|
||||||
payload += sizeof(BlockNumber);
|
payload += sizeof(BlockIdData);
|
||||||
memcpy(&rightChildBlkno, payload, sizeof(BlockNumber));
|
rightChildBlkno = BlockIdGetBlockNumber((BlockId) payload);
|
||||||
payload += sizeof(BlockNumber);
|
payload += sizeof(BlockNumber);
|
||||||
appendStringInfo(buf, " children: %u/%u",
|
appendStringInfo(buf, " children: %u/%u",
|
||||||
leftChildBlkno, rightChildBlkno);
|
leftChildBlkno, rightChildBlkno);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user