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
327b2576
Commit
327b2576
authored
Jan 09, 2011
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve comment.
parent
4448917d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
contrib/btree_gin/btree_gin.c
contrib/btree_gin/btree_gin.c
+5
-4
No files found.
contrib/btree_gin/btree_gin.c
View file @
327b2576
...
@@ -394,10 +394,11 @@ static TypeInfo TypeInfo_varbit = {true, leftmostvalue_varbit, bitcmp};
...
@@ -394,10 +394,11 @@ static TypeInfo TypeInfo_varbit = {true, leftmostvalue_varbit, bitcmp};
GIN_SUPPORT
(
varbit
)
GIN_SUPPORT
(
varbit
)
/*
/*
* Numeric type hasn't applicable left-most value, so NULL
* Numeric type hasn't a real left-most value, so we use PointerGetDatum(NULL)
* is used for that. NULL will never be an argument for a C-level
* (*not* a SQL NULL) to represent that. We can get away with that because
* numeric function except gin_numeric_cmp and it will not be stored
* the value returned by our leftmostvalue function will never be stored in
* somewhere and it could not be returned in any user SQL query.
* the index nor passed to anything except our compare and prefix-comparison
* functions. The same trick could be used for other pass-by-reference types.
*/
*/
#define NUMERIC_IS_LEFTMOST(x) ((x) == NULL)
#define NUMERIC_IS_LEFTMOST(x) ((x) == NULL)
...
...
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