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

Commit6799af7

Browse files
committed
Reverse out vacuum change.
1 parent2ac3173 commit6799af7

File tree

1 file changed

+1
-32
lines changed

1 file changed

+1
-32
lines changed

‎src/backend/commands/vacuum.c

Lines changed: 1 addition & 32 deletions
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.86 1998/10/09 21:28:40 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.87 1998/10/09 21:31:34 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -103,8 +103,6 @@ static intvc_cmp_blk(char *left, char *right);
103103
staticintvc_cmp_offno(char*left,char*right);
104104
staticboolvc_enough_space(VPageDescrvpd,Sizelen);
105105

106-
voidtest(Oidrelid);
107-
108106
void
109107
vacuum(char*vacrel,boolverbose,boolanalyze,List*va_spec)
110108
{
@@ -331,9 +329,6 @@ vc_getrels(NameData *VacRelP)
331329

332330
cur->vrl_relid=tuple->t_oid;
333331
cur->vrl_next= (VRelList)NULL;
334-
335-
test(tuple->t_oid);
336-
337332
}
338333
if (found== false)
339334
elog(NOTICE,"Vacuum: table not found");
@@ -2250,29 +2245,3 @@ vc_enough_space(VPageDescr vpd, Size len)
22502245
return false;
22512246

22522247
}/* vc_enough_space */
2253-
2254-
2255-
voidtest(Oidrelid)
2256-
{
2257-
Relationrd;
2258-
HeapTuplertup,
2259-
ctup;
2260-
Bufferbuffer;
2261-
2262-
/*
2263-
* update number of tuples and number of pages in pg_class
2264-
*/
2265-
ctup=SearchSysCacheTupleCopy(RELOID,
2266-
ObjectIdGetDatum(relid),
2267-
0,0,0);
2268-
if (!HeapTupleIsValid(ctup))
2269-
elog(ERROR,"pg_class entry for relid %d vanished during vacuuming",
2270-
relid);
2271-
2272-
rd=heap_openr(RelationRelationName);
2273-
2274-
/* get the buffer cache tuple */
2275-
rtup=heap_fetch(rd,SnapshotNow,&ctup->t_ctid,&buffer);
2276-
pfree(ctup);
2277-
heap_close(rd);
2278-
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp