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
5373817c
Commit
5373817c
authored
Sep 04, 2008
by
Teodor Sigaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix strategy propagation to scanEntry for partial match by moving propagation
to initializaion of scanEntry.
parent
ba9f37f0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
src/backend/access/gin/ginget.c
src/backend/access/gin/ginget.c
+1
-8
src/backend/access/gin/ginscan.c
src/backend/access/gin/ginscan.c
+2
-1
No files found.
src/backend/access/gin/ginget.c
View file @
5373817c
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/gin/ginget.c,v 1.1
8 2008/07/11 21:06:29 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/access/gin/ginget.c,v 1.1
9 2008/09/04 11:47:05 teodor
Exp $
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -395,14 +395,7 @@ startScanKey(Relation index, GinState *ginstate, GinScanKey key)
...
@@ -395,14 +395,7 @@ startScanKey(Relation index, GinState *ginstate, GinScanKey key)
return
;
return
;
for
(
i
=
0
;
i
<
key
->
nentries
;
i
++
)
for
(
i
=
0
;
i
<
key
->
nentries
;
i
++
)
{
startScanEntry
(
index
,
ginstate
,
key
->
scanEntry
+
i
);
startScanEntry
(
index
,
ginstate
,
key
->
scanEntry
+
i
);
/*
* Copy strategy number to each entry of key to
* use in comparePartialFn call
*/
key
->
scanEntry
[
i
].
strategy
=
key
->
strategy
;
}
memset
(
key
->
entryRes
,
TRUE
,
sizeof
(
bool
)
*
key
->
nentries
);
memset
(
key
->
entryRes
,
TRUE
,
sizeof
(
bool
)
*
key
->
nentries
);
key
->
isFinished
=
FALSE
;
key
->
isFinished
=
FALSE
;
...
...
src/backend/access/gin/ginscan.c
View file @
5373817c
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/gin/ginscan.c,v 1.1
7 2008/07/11 21:06:29 tgl
Exp $
* $PostgreSQL: pgsql/src/backend/access/gin/ginscan.c,v 1.1
8 2008/09/04 11:47:05 teodor
Exp $
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -61,6 +61,7 @@ fillScanKey(GinState *ginstate, GinScanKey key, OffsetNumber attnum, Datum query
...
@@ -61,6 +61,7 @@ fillScanKey(GinState *ginstate, GinScanKey key, OffsetNumber attnum, Datum query
key
->
scanEntry
[
i
].
offset
=
InvalidOffsetNumber
;
key
->
scanEntry
[
i
].
offset
=
InvalidOffsetNumber
;
key
->
scanEntry
[
i
].
buffer
=
InvalidBuffer
;
key
->
scanEntry
[
i
].
buffer
=
InvalidBuffer
;
key
->
scanEntry
[
i
].
partialMatch
=
NULL
;
key
->
scanEntry
[
i
].
partialMatch
=
NULL
;
key
->
scanEntry
[
i
].
strategy
=
strategy
;
key
->
scanEntry
[
i
].
list
=
NULL
;
key
->
scanEntry
[
i
].
list
=
NULL
;
key
->
scanEntry
[
i
].
nlist
=
0
;
key
->
scanEntry
[
i
].
nlist
=
0
;
key
->
scanEntry
[
i
].
isPartialMatch
=
(
ginstate
->
canPartialMatch
[
attnum
-
1
]
&&
partial_matches
)
key
->
scanEntry
[
i
].
isPartialMatch
=
(
ginstate
->
canPartialMatch
[
attnum
-
1
]
&&
partial_matches
)
...
...
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