diff options
Diffstat (limited to 'contrib/pg_trgm/trgm.h')
-rw-r--r-- | contrib/pg_trgm/trgm.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/contrib/pg_trgm/trgm.h b/contrib/pg_trgm/trgm.h index 85826733f55..1cc812554f7 100644 --- a/contrib/pg_trgm/trgm.h +++ b/contrib/pg_trgm/trgm.h @@ -4,12 +4,10 @@ #ifndef __TRGM_H__ #define __TRGM_H__ -#include "postgres.h" - #include "access/gist.h" #include "access/itup.h" -#include "utils/builtins.h" #include "storage/bufpage.h" +#include "utils/builtins.h" /* options */ #define LPADDING 2 @@ -18,6 +16,10 @@ #define IGNORECASE #define DIVUNION +/* operator strategy numbers */ +#define SimilarityStrategyNumber 1 +#define DistanceStrategyNumber 2 + typedef char trgm[3]; @@ -89,4 +91,4 @@ extern float4 trgm_limit; TRGM *generate_trgm(char *str, int slen); float4 cnt_sml(TRGM *trg1, TRGM *trg2); -#endif +#endif /* __TRGM_H__ */ |