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
5f0bf6cb
Commit
5f0bf6cb
authored
Nov 16, 2007
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run pgindent on remaining files now that LOOPBYTE is a usable macro.
parent
0c2c061e
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
44 additions
and
44 deletions
+44
-44
contrib/hstore/hstore_gist.c
contrib/hstore/hstore_gist.c
+11
-11
contrib/intarray/_intbig_gist.c
contrib/intarray/_intbig_gist.c
+1
-1
contrib/ltree/_ltree_gist.c
contrib/ltree/_ltree_gist.c
+1
-1
contrib/ltree/ltree_gist.c
contrib/ltree/ltree_gist.c
+6
-6
contrib/pg_trgm/trgm_gist.c
contrib/pg_trgm/trgm_gist.c
+9
-9
src/backend/utils/adt/tsgistidx.c
src/backend/utils/adt/tsgistidx.c
+16
-16
No files found.
contrib/hstore/hstore_gist.c
View file @
5f0bf6cb
...
@@ -516,7 +516,7 @@ ghstore_consistent(PG_FUNCTION_ARGS)
...
@@ -516,7 +516,7 @@ ghstore_consistent(PG_FUNCTION_ARGS)
sign
=
GETSIGN
(
entry
);
sign
=
GETSIGN
(
entry
);
if
(
strategy
==
HStoreContainsStrategyNumber
||
strategy
==
13
/* hack for old strats */
)
if
(
strategy
==
HStoreContainsStrategyNumber
||
strategy
==
13
/* hack for old strats */
)
{
{
HStore
*
query
=
PG_GETARG_HS
(
1
);
HStore
*
query
=
PG_GETARG_HS
(
1
);
HEntry
*
qe
=
ARRPTR
(
query
);
HEntry
*
qe
=
ARRPTR
(
query
);
...
@@ -540,10 +540,10 @@ ghstore_consistent(PG_FUNCTION_ARGS)
...
@@ -540,10 +540,10 @@ ghstore_consistent(PG_FUNCTION_ARGS)
qe
++
;
qe
++
;
}
}
}
}
else
if
(
strategy
==
HStoreExistsStrategyNumber
)
else
if
(
strategy
==
HStoreExistsStrategyNumber
)
{
{
text
*
query
=
PG_GETARG_TEXT_P
(
1
);
text
*
query
=
PG_GETARG_TEXT_P
(
1
);
int
crc
=
crc32_sz
(
VARDATA
(
query
),
VARSIZE
(
query
)
-
VARHDRSZ
);
int
crc
=
crc32_sz
(
VARDATA
(
query
),
VARSIZE
(
query
)
-
VARHDRSZ
);
res
=
(
GETBIT
(
sign
,
HASHVAL
(
crc
)))
?
true
:
false
;
res
=
(
GETBIT
(
sign
,
HASHVAL
(
crc
)))
?
true
:
false
;
}
}
...
...
contrib/intarray/_intbig_gist.c
View file @
5f0bf6cb
contrib/ltree/_ltree_gist.c
View file @
5f0bf6cb
contrib/ltree/ltree_gist.c
View file @
5f0bf6cb
/*
/*
* GiST support for ltree
* GiST support for ltree
* Teodor Sigaev <teodor@stack.net>
* Teodor Sigaev <teodor@stack.net>
* $PostgreSQL: pgsql/contrib/ltree/ltree_gist.c,v 1.2
1 2007/11/16 00:13:02
momjian Exp $
* $PostgreSQL: pgsql/contrib/ltree/ltree_gist.c,v 1.2
2 2007/11/16 01:12:24
momjian Exp $
*/
*/
#include "ltree.h"
#include "ltree.h"
...
...
contrib/pg_trgm/trgm_gist.c
View file @
5f0bf6cb
...
@@ -397,7 +397,7 @@ typedef struct
...
@@ -397,7 +397,7 @@ typedef struct
}
CACHESIGN
;
}
CACHESIGN
;
static
void
static
void
fillcache
(
CACHESIGN
*
item
,
TRGM
*
key
)
fillcache
(
CACHESIGN
*
item
,
TRGM
*
key
)
{
{
item
->
allistrue
=
false
;
item
->
allistrue
=
false
;
if
(
ISARRKEY
(
key
))
if
(
ISARRKEY
(
key
))
...
@@ -426,7 +426,7 @@ comparecost(const void *a, const void *b)
...
@@ -426,7 +426,7 @@ comparecost(const void *a, const void *b)
static
int
static
int
hemdistcache
(
CACHESIGN
*
a
,
CACHESIGN
*
b
)
hemdistcache
(
CACHESIGN
*
a
,
CACHESIGN
*
b
)
{
{
if
(
a
->
allistrue
)
if
(
a
->
allistrue
)
{
{
...
...
src/backend/utils/adt/tsgistidx.c
View file @
5f0bf6cb
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/adt/tsgistidx.c,v 1.
5 2007/11/16 00:13:02
momjian Exp $
* $PostgreSQL: pgsql/src/backend/utils/adt/tsgistidx.c,v 1.
6 2007/11/16 01:12:24
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -167,7 +167,7 @@ uniqueint(int4 *a, int4 l)
...
@@ -167,7 +167,7 @@ uniqueint(int4 *a, int4 l)
}
}
static
void
static
void
makesign
(
BITVECP
sign
,
SignTSVector
*
a
)
makesign
(
BITVECP
sign
,
SignTSVector
*
a
)
{
{
int4
k
,
int4
k
,
len
=
ARRNELEM
(
a
);
len
=
ARRNELEM
(
a
);
...
@@ -299,7 +299,7 @@ typedef struct
...
@@ -299,7 +299,7 @@ typedef struct
* is there value 'val' in array or not ?
* is there value 'val' in array or not ?
*/
*/
static
bool
static
bool
checkcondition_arr
(
void
*
checkval
,
QueryOperand
*
val
)
checkcondition_arr
(
void
*
checkval
,
QueryOperand
*
val
)
{
{
int4
*
StopLow
=
((
CHKVAL
*
)
checkval
)
->
arrb
;
int4
*
StopLow
=
((
CHKVAL
*
)
checkval
)
->
arrb
;
int4
*
StopHigh
=
((
CHKVAL
*
)
checkval
)
->
arre
;
int4
*
StopHigh
=
((
CHKVAL
*
)
checkval
)
->
arre
;
...
@@ -322,7 +322,7 @@ checkcondition_arr(void *checkval, QueryOperand * val)
...
@@ -322,7 +322,7 @@ checkcondition_arr(void *checkval, QueryOperand * val)
}
}
static
bool
static
bool
checkcondition_bit
(
void
*
checkval
,
QueryOperand
*
val
)
checkcondition_bit
(
void
*
checkval
,
QueryOperand
*
val
)
{
{
return
GETBIT
(
checkval
,
HASHVAL
(
val
->
valcrc
));
return
GETBIT
(
checkval
,
HASHVAL
(
val
->
valcrc
));
}
}
...
@@ -364,7 +364,7 @@ gtsvector_consistent(PG_FUNCTION_ARGS)
...
@@ -364,7 +364,7 @@ gtsvector_consistent(PG_FUNCTION_ARGS)
}
}
static
int4
static
int4
unionkey
(
BITVECP
sbase
,
SignTSVector
*
add
)
unionkey
(
BITVECP
sbase
,
SignTSVector
*
add
)
{
{
int4
i
;
int4
i
;
...
@@ -507,7 +507,7 @@ hemdistsign(BITVECP a, BITVECP b)
...
@@ -507,7 +507,7 @@ hemdistsign(BITVECP a, BITVECP b)
}
}
static
int
static
int
hemdist
(
SignTSVector
*
a
,
SignTSVector
*
b
)
hemdist
(
SignTSVector
*
a
,
SignTSVector
*
b
)
{
{
if
(
ISALLTRUE
(
a
))
if
(
ISALLTRUE
(
a
))
{
{
...
@@ -557,7 +557,7 @@ typedef struct
...
@@ -557,7 +557,7 @@ typedef struct
}
CACHESIGN
;
}
CACHESIGN
;
static
void
static
void
fillcache
(
CACHESIGN
*
item
,
SignTSVector
*
key
)
fillcache
(
CACHESIGN
*
item
,
SignTSVector
*
key
)
{
{
item
->
allistrue
=
false
;
item
->
allistrue
=
false
;
if
(
ISARRKEY
(
key
))
if
(
ISARRKEY
(
key
))
...
@@ -589,7 +589,7 @@ comparecost(const void *va, const void *vb)
...
@@ -589,7 +589,7 @@ comparecost(const void *va, const void *vb)
static
int
static
int
hemdistcache
(
CACHESIGN
*
a
,
CACHESIGN
*
b
)
hemdistcache
(
CACHESIGN
*
a
,
CACHESIGN
*
b
)
{
{
if
(
a
->
allistrue
)
if
(
a
->
allistrue
)
{
{
...
...
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