Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
6799af7d
Commit
6799af7d
authored
Oct 09, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverse out vacuum change.
parent
2ac3173d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
32 deletions
+1
-32
src/backend/commands/vacuum.c
src/backend/commands/vacuum.c
+1
-32
No files found.
src/backend/commands/vacuum.c
View file @
6799af7d
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.8
6 1998/10/09 21:28:40
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.8
7 1998/10/09 21:31:34
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -103,8 +103,6 @@ static int vc_cmp_blk(char *left, char *right);
static
int
vc_cmp_offno
(
char
*
left
,
char
*
right
);
static
bool
vc_enough_space
(
VPageDescr
vpd
,
Size
len
);
void
test
(
Oid
relid
);
void
vacuum
(
char
*
vacrel
,
bool
verbose
,
bool
analyze
,
List
*
va_spec
)
{
...
...
@@ -331,9 +329,6 @@ vc_getrels(NameData *VacRelP)
cur
->
vrl_relid
=
tuple
->
t_oid
;
cur
->
vrl_next
=
(
VRelList
)
NULL
;
test
(
tuple
->
t_oid
);
}
if
(
found
==
false
)
elog
(
NOTICE
,
"Vacuum: table not found"
);
...
...
@@ -2250,29 +2245,3 @@ vc_enough_space(VPageDescr vpd, Size len)
return
false
;
}
/* vc_enough_space */
void
test
(
Oid
relid
)
{
Relation
rd
;
HeapTuple
rtup
,
ctup
;
Buffer
buffer
;
/*
* update number of tuples and number of pages in pg_class
*/
ctup
=
SearchSysCacheTupleCopy
(
RELOID
,
ObjectIdGetDatum
(
relid
),
0
,
0
,
0
);
if
(
!
HeapTupleIsValid
(
ctup
))
elog
(
ERROR
,
"pg_class entry for relid %d vanished during vacuuming"
,
relid
);
rd
=
heap_openr
(
RelationRelationName
);
/* get the buffer cache tuple */
rtup
=
heap_fetch
(
rd
,
SnapshotNow
,
&
ctup
->
t_ctid
,
&
buffer
);
pfree
(
ctup
);
heap_close
(
rd
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment