Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbd9f4cf

Browse files
Demote pg_unreachable() in heapam to an assertion.
Commitd168b66, which overhauled index deletion, added apg_unreachable() to the end of a sort comparator used when sorting heapTIDs from an index page. This allows the compiler to applyoptimizations that assume that the heap TIDs from the index AM mustalways be unique.That doesn't seem like a good idea now, given recent reports ofcorruption involving duplicate TIDs in indexes on Postgres 14. Demoteto an assertion, just in case.Backpatch: 14-, where index deletion was overhauled.
1 parent0c8a40b commitbd9f4cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/access/heap/heapam.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7579,7 +7579,7 @@ index_delete_sort_cmp(TM_IndexDelete *deltid1, TM_IndexDelete *deltid2)
75797579
return (pos1<pos2) ?-1 :1;
75807580
}
75817581

7582-
pg_unreachable();
7582+
Assert(false);
75837583

75847584
return0;
75857585
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp