Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
09e12508
Commit
09e12508
authored
26 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Fix for vacuum introduced today.
parent
a4d3695f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/backend/commands/vacuum.c
+11
-8
11 additions, 8 deletions
src/backend/commands/vacuum.c
src/bin/initdb/initdb.sh
+4
-4
4 additions, 4 deletions
src/bin/initdb/initdb.sh
with
15 additions
and
12 deletions
src/backend/commands/vacuum.c
+
11
−
8
View file @
09e12508
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.7
3
1998/08/19 2
2:01:18
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.7
4
1998/08/19 2
3:48:21
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -187,8 +187,11 @@ vc_init()
int
fd
;
if
((
fd
=
open
(
"pg_vlock"
,
O_CREAT
|
O_EXCL
,
0600
))
<
0
)
elog
(
ERROR
,
"can't create lock file -- another vacuum cleaner running?"
);
{
elog
(
ERROR
,
"Can't create lock file -- another vacuum cleaner running?
\n
\
\t
If not, you may remove the pg_vlock file in the pgsql/data/base/your_db
\n
\
\t
directory"
);
}
close
(
fd
);
/*
...
...
@@ -1443,13 +1446,13 @@ vc_scanoneind(Relation indrel, int num_tuples)
getrusage
(
RUSAGE_SELF
,
&
ru1
);
elog
(
MESSAGE_LEVEL
,
"Ind %s: Pages %u; Tuples %u. Elapsed %u/%u sec."
,
elog
(
MESSAGE_LEVEL
,
"Ind
ex
%s: Pages %u; Tuples %u. Elapsed %u/%u sec."
,
indrel
->
rd_rel
->
relname
.
data
,
nipages
,
nitups
,
ru1
.
ru_stime
.
tv_sec
-
ru0
.
ru_stime
.
tv_sec
,
ru1
.
ru_utime
.
tv_sec
-
ru0
.
ru_utime
.
tv_sec
);
if
(
nitups
!=
num_tuples
)
elog
(
NOTICE
,
"Ind %s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u)"
,
elog
(
NOTICE
,
"Ind
ex
%s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u)"
,
indrel
->
rd_rel
->
relname
.
data
,
nitups
,
num_tuples
);
}
/* vc_scanoneind */
...
...
@@ -1502,7 +1505,7 @@ vc_vaconeind(VPageList vpl, Relation indrel, int num_tuples)
#endif
if
(
vp
->
vpd_offsets_free
==
0
)
{
/* this is EmptyPage !!! */
elog
(
NOTICE
,
"Ind %s: pointer to EmptyPage (blk %u off %u) - fixing"
,
elog
(
NOTICE
,
"Ind
ex
%s: pointer to EmptyPage (blk %u off %u) - fixing"
,
indrel
->
rd_rel
->
relname
.
data
,
vp
->
vpd_blkno
,
ItemPointerGetOffsetNumber
(
heapptr
));
}
...
...
@@ -1523,13 +1526,13 @@ vc_vaconeind(VPageList vpl, Relation indrel, int num_tuples)
getrusage
(
RUSAGE_SELF
,
&
ru1
);
elog
(
MESSAGE_LEVEL
,
"Ind %s: Pages %u; Tuples %u: Deleted %u. Elapsed %u/%u sec."
,
elog
(
MESSAGE_LEVEL
,
"Ind
ex
%s: Pages %u; Tuples %u: Deleted %u. Elapsed %u/%u sec."
,
indrel
->
rd_rel
->
relname
.
data
,
num_pages
,
num_index_tuples
,
tups_vacuumed
,
ru1
.
ru_stime
.
tv_sec
-
ru0
.
ru_stime
.
tv_sec
,
ru1
.
ru_utime
.
tv_sec
-
ru0
.
ru_utime
.
tv_sec
);
if
(
num_index_tuples
!=
num_tuples
)
elog
(
NOTICE
,
"Ind %s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u)"
,
elog
(
NOTICE
,
"Ind
ex
%s: NUMBER OF INDEX' TUPLES (%u) IS NOT THE SAME AS HEAP' (%u)"
,
indrel
->
rd_rel
->
relname
.
data
,
num_index_tuples
,
num_tuples
);
}
/* vc_vaconeind */
...
...
This diff is collapsed.
Click to expand it.
src/bin/initdb/initdb.sh
+
4
−
4
View file @
09e12508
...
...
@@ -26,7 +26,7 @@
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.4
7
1998/08/19
19:59:45
momjian Exp $
# $Header: /cvsroot/pgsql/src/bin/initdb/Attic/initdb.sh,v 1.4
8
1998/08/19
23:48:23
momjian Exp $
#
#-------------------------------------------------------------------------
...
...
@@ -219,10 +219,10 @@ for PREREQ_FILE in $TEMPLATE $GLOBAL $PG_HBA_SAMPLE; do
fi
done
echo
"
$CMDNAME
: using
$TEMPLATE
as input to create the template database."
[
"
$debug
"
-ne
0
]
&&
echo
"
$CMDNAME
: using
$TEMPLATE
as input to create the template database."
if
[
$template_only
-eq
0
]
;
then
echo
"
$CMDNAME
: using
$GLOBAL
as input to create the global classes."
echo
"
$CMDNAME
: using
$PG_HBA_SAMPLE
as the host-based authentication"
\
[
"
$debug
"
-ne
0
]
&&
echo
"
$CMDNAME
: using
$GLOBAL
as input to create the global classes."
[
"
$debug
"
-ne
0
]
&&
echo
"
$CMDNAME
: using
$PG_HBA_SAMPLE
as the host-based authentication"
\
"control file."
echo
fi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment