diff options
author | Teodor Sigaev | 2007-03-14 14:15:40 +0000 |
---|---|---|
committer | Teodor Sigaev | 2007-03-14 14:15:40 +0000 |
commit | 15f91f27897542c0e154037fca503f7543241e49 (patch) | |
tree | ac62fe6ccf6f0634c726cb6984e049451be52966 /contrib/pg_trgm/trgm.h | |
parent | 547e41cdf80d417c01d183793bd28cd123e3c64d (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.h | 1 |
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 { |