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
9c4eceb4
Commit
9c4eceb4
authored
Aug 19, 1998
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for vacuum updating problem.
parent
5fbbd364
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
src/backend/commands/vacuum.c
src/backend/commands/vacuum.c
+4
-5
src/backend/executor/nodeIndexscan.c
src/backend/executor/nodeIndexscan.c
+10
-3
No files found.
src/backend/commands/vacuum.c
View file @
9c4eceb4
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.7
0 1998/08/19 02:01:56
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.7
1 1998/08/19 15:47:35
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -39,6 +39,7 @@
#include "storage/bufpage.h"
#include "storage/shmem.h"
#include "storage/smgr.h"
#include "storage/itemptr.h"
#include "storage/lmgr.h"
#include "utils/builtins.h"
#include "utils/inval.h"
...
...
@@ -1883,13 +1884,11 @@ vc_updstats(Oid relid, int npages, int ntups, bool hasindex, VRelStats *vacrelst
}
/* XXX -- after write, should invalidate relcache in other backends */
#ifdef NOT_USED
WriteNoReleaseBuffer
(
&
rtup
->
t_ctid
);
/* heap_endscan release scan' buffers ? */
#endif
WriteNoReleaseBuffer
(
ItemPointerGetBlockNumber
(
&
rtup
->
t_ctid
));
/*
* invalidating system relations confuses the function cache of
* pg_operator and pg_opclass
* pg_operator and pg_opclass
, bjm
*/
if
(
!
IsSystemRelationName
(
pgcform
->
relname
.
data
))
RelationInvalidateHeapTuple
(
rd
,
rtup
);
...
...
src/backend/executor/nodeIndexscan.c
View file @
9c4eceb4
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/executor/nodeIndexscan.c,v 1.2
4 1998/08/19 02:02:02
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/executor/nodeIndexscan.c,v 1.2
5 1998/08/19 15:47:36
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -129,7 +129,7 @@ IndexNext(IndexScan *node)
{
bool
prev_matches
=
false
;
int
prev_index
;
/* ----------------
* store the scanned tuple in the scan tuple slot of
* the scan state. Eventually we will only do this and not
...
...
@@ -142,10 +142,17 @@ IndexNext(IndexScan *node)
slot
,
/* slot to store in */
buffer
,
/* buffer associated with tuple */
false
);
/* don't pfree */
/*
* We must check to see if the current tuple would have been
* matched by an earlier index, so we don't double report it.
* We do this by passing the tuple through ExecQual and look
* for failure with all previous qualifications.
*/
for
(
prev_index
=
0
;
prev_index
<
indexstate
->
iss_IndexPtr
;
prev_index
++
)
{
scanstate
->
cstate
.
cs_ExprContext
->
ecxt_scantuple
=
slot
;
if
(
ExecQual
(
nth
(
prev_index
,
node
->
indxqual
),
scanstate
->
cstate
.
cs_ExprContext
))
{
...
...
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