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

Commita1708ab

Browse files
Remove overzealous index deletion assertion.
A broken HOT chain is not an unexpected condition, even when the offsetnumber points past the end of the page's line pointer array.heap_prune_chain() does not (and never has) treated this condition asunexpected, so derivative code in heap_index_delete_tuples() shouldn'tdo so either.Oversight in commit4228817.The assertion can probably only fail on Postgres 14 and master. Earlierreleases don't have commit3c3b8a4, which taught VACUUM to truncate theline pointer array of heap pages. Backpatch all the same, just to beconsistent.Author: Peter Geoghegan <pg@bowt.ie>Reported-By: Alexander Lakhin <exclusion@gmail.com>Discussion:https://postgr.es/m/17197-9438f31f46705182@postgresql.orgBackpatch: 12-, just like commit4228817.
1 parentdede143 commita1708ab

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7093,10 +7093,7 @@ heap_compute_xid_horizon_for_tuples(Relation rel,
70937093

70947094
/* Some sanity checks */
70957095
if (offnum<FirstOffsetNumber||offnum>maxoff)
7096-
{
7097-
Assert(false);
70987096
break;
7099-
}
71007097

71017098
lp=PageGetItemId(page,offnum);
71027099
if (ItemIdIsRedirected(lp))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp