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
04522279
Commit
04522279
authored
Oct 21, 1996
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-Wall Cleanup of gist subdirectory
parent
95874fa0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
6 deletions
+32
-6
src/backend/access/gist/gistscan.c
src/backend/access/gist/gistscan.c
+30
-6
src/backend/access/gist/giststrat.c
src/backend/access/gist/giststrat.c
+2
-0
No files found.
src/backend/access/gist/gistscan.c
View file @
04522279
...
...
@@ -46,6 +46,30 @@
#include "access/sdir.h"
#include "access/genam.h"
#include "storage/ipc.h"
#include "storage/spin.h"
#include "utils/hsearch.h"
#include "storage/shmem.h"
#include "storage/lock.h"
#include "storage/lmgr.h"
#ifndef HAVE_MEMMOVE
# include "regex/utils.h"
#else
# include <string.h>
#endif
#include "utils/palloc.h"
#include "storage/block.h"
#include "storage/off.h"
#include "access/rtree.h"
#include <stdio.h>
#include "storage/bufmgr.h"
#include "access/giststrat.h"
/* routines defined and used here */
static
void
gistregscan
(
IndexScanDesc
s
);
static
void
gistdropscan
(
IndexScanDesc
s
);
...
...
@@ -134,8 +158,8 @@ gistrescan(IndexScanDesc s, bool fromEnd, ScanKey key)
p
=
(
GISTScanOpaque
)
s
->
opaque
;
if
(
p
!=
(
GISTScanOpaque
)
NULL
)
{
freestack
(
p
->
s_stack
);
freestack
(
p
->
s_markstk
);
gist
freestack
(
p
->
s_stack
);
gist
freestack
(
p
->
s_markstk
);
p
->
s_stack
=
p
->
s_markstk
=
(
GISTSTACK
*
)
NULL
;
p
->
s_flags
=
0x0
;
}
else
{
...
...
@@ -191,7 +215,7 @@ gistmarkpos(IndexScanDesc s)
n
=
n
->
gs_parent
;
}
freestack
(
p
->
s_markstk
);
gist
freestack
(
p
->
s_markstk
);
p
->
s_markstk
=
o
;
}
...
...
@@ -221,7 +245,7 @@ gistrestrpos(IndexScanDesc s)
n
=
n
->
gs_parent
;
}
freestack
(
p
->
s_stack
);
gist
freestack
(
p
->
s_stack
);
p
->
s_stack
=
o
;
}
...
...
@@ -233,8 +257,8 @@ gistendscan(IndexScanDesc s)
p
=
(
GISTScanOpaque
)
s
->
opaque
;
if
(
p
!=
(
GISTScanOpaque
)
NULL
)
{
freestack
(
p
->
s_stack
);
freestack
(
p
->
s_markstk
);
gist
freestack
(
p
->
s_stack
);
gist
freestack
(
p
->
s_markstk
);
}
gistdropscan
(
s
);
...
...
src/backend/access/gist/giststrat.c
View file @
04522279
...
...
@@ -37,6 +37,8 @@
#include "storage/bufpage.h"
#include "access/gist.h"
#include "access/istrat.h"
/*
* Note: negate, commute, and negatecommute all assume that operators are
* ordered as follows in the strategy map:
...
...
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