summaryrefslogtreecommitdiff
path: root/contrib/pg_trgm
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/pg_trgm')
-rw-r--r--contrib/pg_trgm/trgm_gin.c4
-rw-r--r--contrib/pg_trgm/trgm_gist.c4
-rw-r--r--contrib/pg_trgm/trgm_op.c3
-rw-r--r--contrib/pg_trgm/trgm_regexp.c4
4 files changed, 4 insertions, 11 deletions
diff --git a/contrib/pg_trgm/trgm_gin.c b/contrib/pg_trgm/trgm_gin.c
index 1b9809b565..4dbf0ffb68 100644
--- a/contrib/pg_trgm/trgm_gin.c
+++ b/contrib/pg_trgm/trgm_gin.c
@@ -3,12 +3,10 @@
*/
#include "postgres.h"
-#include "trgm.h"
-
#include "access/gin.h"
#include "access/stratnum.h"
#include "fmgr.h"
-
+#include "trgm.h"
PG_FUNCTION_INFO_V1(gin_extract_trgm);
PG_FUNCTION_INFO_V1(gin_extract_value_trgm);
diff --git a/contrib/pg_trgm/trgm_gist.c b/contrib/pg_trgm/trgm_gist.c
index e79db8a4f0..e022d0b799 100644
--- a/contrib/pg_trgm/trgm_gist.c
+++ b/contrib/pg_trgm/trgm_gist.c
@@ -3,12 +3,10 @@
*/
#include "postgres.h"
-#include "trgm.h"
-
#include "access/stratnum.h"
#include "fmgr.h"
#include "port/pg_bitutils.h"
-
+#include "trgm.h"
typedef struct
{
diff --git a/contrib/pg_trgm/trgm_op.c b/contrib/pg_trgm/trgm_op.c
index 0d4614e9c8..4679efe656 100644
--- a/contrib/pg_trgm/trgm_op.c
+++ b/contrib/pg_trgm/trgm_op.c
@@ -5,9 +5,8 @@
#include <ctype.h>
-#include "trgm.h"
-
#include "catalog/pg_type.h"
+#include "trgm.h"
#include "tsearch/ts_locale.h"
#include "utils/lsyscache.h"
#include "utils/memutils.h"
diff --git a/contrib/pg_trgm/trgm_regexp.c b/contrib/pg_trgm/trgm_regexp.c
index 3ad5731ae8..7965a29c9f 100644
--- a/contrib/pg_trgm/trgm_regexp.c
+++ b/contrib/pg_trgm/trgm_regexp.c
@@ -191,14 +191,12 @@
*/
#include "postgres.h"
-#include "trgm.h"
-
#include "regex/regexport.h"
+#include "trgm.h"
#include "tsearch/ts_locale.h"
#include "utils/hsearch.h"
#include "utils/memutils.h"
-
/*
* Uncomment (or use -DTRGM_REGEXP_DEBUG) to print debug info,
* for exploring and debugging the algorithm implementation.