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

Commit2513765

Browse files
committed
Back-patch a low-risk fix for the 'HEAP_MOVED_IN was not expected' bug:
just dike out the code that tries to remove pages from fraged_pages.
1 parent9dde24e commit2513765

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/backend/commands/vacuum.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.110.2.4 2000/01/04 17:27:26 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.110.2.5 2000/01/10 04:16:10 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1253,6 +1253,7 @@ vc_rpfheap(VRelStats *vacrelstats, Relation onerel,
12531253
{
12541254
if (!vc_enough_space(to_vpd,tlen))
12551255
{
1256+
#if0/* this code is broken */
12561257
if (to_vpd!=last_fraged_page&&
12571258
!vc_enough_space(to_vpd,vacrelstats->min_tlen))
12581259
{
@@ -1263,6 +1264,7 @@ vc_rpfheap(VRelStats *vacrelstats, Relation onerel,
12631264
num_fraged_pages--;
12641265
Assert(last_fraged_page==fraged_pages->vpl_pagedesc[num_fraged_pages-1]);
12651266
}
1267+
#endif
12661268
for (i=0;i<num_fraged_pages;i++)
12671269
{
12681270
if (vc_enough_space(fraged_pages->vpl_pagedesc[i],tlen))
@@ -1517,6 +1519,7 @@ moving chain: failed to add item with len = %u to page %u",
15171519
WriteBuffer(cur_buffer);
15181520
cur_buffer=InvalidBuffer;
15191521

1522+
#if0/* this code is broken */
15201523
/*
15211524
* If no one tuple can't be added to this page -
15221525
* remove page from fraged_pages. - vadim 11/27/96
@@ -1534,6 +1537,7 @@ moving chain: failed to add item with len = %u to page %u",
15341537
num_fraged_pages--;
15351538
Assert(last_fraged_page==fraged_pages->vpl_pagedesc[num_fraged_pages-1]);
15361539
}
1540+
#endif
15371541
}
15381542
for (i=0;i<num_fraged_pages;i++)
15391543
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp