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
7bed6df1
Commit
7bed6df1
authored
Feb 12, 2004
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check only live tuples for OID validity, to avoid issues after ALTER
TABLE. Per recent discussion.
parent
1ecd035b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
src/backend/commands/vacuum.c
src/backend/commands/vacuum.c
+9
-9
src/backend/commands/vacuumlazy.c
src/backend/commands/vacuumlazy.c
+9
-9
No files found.
src/backend/commands/vacuum.c
View file @
7bed6df1
...
...
@@ -13,7 +13,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/vacuum.c,v 1.27
3 2004/02/10 03:42:43
tgl Exp $
* $PostgreSQL: pgsql/src/backend/commands/vacuum.c,v 1.27
4 2004/02/12 05:39:55
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1178,6 +1178,14 @@ scan_heap(VRelStats *vacrelstats, Relation onerel,
Assert
(
tuple
.
t_data
->
t_infomask
&
HEAP_XMIN_COMMITTED
);
pgchanged
=
true
;
}
/*
* Other checks...
*/
if
(
onerel
->
rd_rel
->
relhasoids
&&
!
OidIsValid
(
HeapTupleGetOid
(
&
tuple
)))
elog
(
WARNING
,
"relation
\"
%s
\"
TID %u/%u: OID is invalid"
,
relname
,
blkno
,
offnum
);
break
;
case
HEAPTUPLE_RECENTLY_DEAD
:
...
...
@@ -1244,14 +1252,6 @@ scan_heap(VRelStats *vacrelstats, Relation onerel,
if
(
sv_infomask
!=
tuple
.
t_data
->
t_infomask
)
pgchanged
=
true
;
/*
* Other checks...
*/
if
(
onerel
->
rd_rel
->
relhasoids
&&
!
OidIsValid
(
HeapTupleGetOid
(
&
tuple
)))
elog
(
WARNING
,
"relation
\"
%s
\"
TID %u/%u: OID is invalid"
,
relname
,
blkno
,
offnum
);
if
(
tupgone
)
{
ItemId
lpp
;
...
...
src/backend/commands/vacuumlazy.c
View file @
7bed6df1
...
...
@@ -31,7 +31,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.3
7 2004/02/10 03:42:44
tgl Exp $
* $PostgreSQL: pgsql/src/backend/commands/vacuumlazy.c,v 1.3
8 2004/02/12 05:39:55
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -336,6 +336,14 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
Assert
(
tuple
.
t_data
->
t_infomask
&
HEAP_XMIN_COMMITTED
);
pgchanged
=
true
;
}
/*
* Other checks...
*/
if
(
onerel
->
rd_rel
->
relhasoids
&&
!
OidIsValid
(
HeapTupleGetOid
(
&
tuple
)))
elog
(
WARNING
,
"relation
\"
%s
\"
TID %u/%u: OID is invalid"
,
relname
,
blkno
,
offnum
);
break
;
case
HEAPTUPLE_RECENTLY_DEAD
:
...
...
@@ -360,14 +368,6 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
if
(
sv_infomask
!=
tuple
.
t_data
->
t_infomask
)
pgchanged
=
true
;
/*
* Other checks...
*/
if
(
onerel
->
rd_rel
->
relhasoids
&&
!
OidIsValid
(
HeapTupleGetOid
(
&
tuple
)))
elog
(
WARNING
,
"relation
\"
%s
\"
TID %u/%u: OID is invalid"
,
relname
,
blkno
,
offnum
);
if
(
tupgone
)
{
lazy_record_dead_tuple
(
vacrelstats
,
&
(
tuple
.
t_self
));
...
...
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