summaryrefslogtreecommitdiff
path: root/contrib/pg_trgm/trgm.h
diff options
context:
space:
mode:
authorTeodor Sigaev2007-03-14 14:15:40 +0000
committerTeodor Sigaev2007-03-14 14:15:40 +0000
commit15f91f27897542c0e154037fca503f7543241e49 (patch)
treeac62fe6ccf6f0634c726cb6984e049451be52966 /contrib/pg_trgm/trgm.h
parent547e41cdf80d417c01d183793bd28cd123e3c64d (diff)
Add GIN support for pg_trgm. From Guillaume Smet <[email protected]>
with minor editorization by me.
Diffstat (limited to 'contrib/pg_trgm/trgm.h')
-rw-r--r--contrib/pg_trgm/trgm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/pg_trgm/trgm.h b/contrib/pg_trgm/trgm.h
index bc2a4dc44a8..cc07d4b0ef9 100644
--- a/contrib/pg_trgm/trgm.h
+++ b/contrib/pg_trgm/trgm.h
@@ -28,6 +28,7 @@ typedef char trgm[3];
*(((char*)(a))+2) = *(((char*)(b))+2); \
} while(0);
+#define TRGMINT(a) ( (*(((char*)(a))+2)<<16)+(*(((char*)(a))+1)<<8)+*(((char*)(a))+0) )
typedef struct
{