diff options
| author | Amit Kapila | 2019-10-23 03:56:22 +0000 |
|---|---|---|
| committer | Amit Kapila | 2019-10-24 02:35:34 +0000 |
| commit | 7e735035f208418f31b91846ae3e8a381edb3af3 (patch) | |
| tree | 3e65f5f1c373f43e4ab7abaa49b30bfbafecb4d5 /contrib/ltree | |
| parent | 59c2617af35f064e5d3ef39cfe94531f7459f3de (diff) | |
Make the order of the header file includes consistent in contrib modules.
The basic rule we follow here is to always first include 'postgres.h' or
'postgres_fe.h' whichever is applicable, then system header includes and
then Postgres header includes. In this, we also follow that all the
Postgres header includes are in order based on their ASCII value. We
generally follow these rules, but the code has deviated in many places.
This commit makes it consistent just for contrib modules. The later
commits will enforce similar rules in other parts of code.
Author: Vignesh C
Reviewed-by: Amit Kapila
Discussion: https://postgr.es/m/CALDaNm2Sznv8RR6Ex-iJO6xAdsxgWhCoETkaYX=+9DW3q0QCfA@mail.gmail.com
Diffstat (limited to 'contrib/ltree')
| -rw-r--r-- | contrib/ltree/_ltree_gist.c | 4 | ||||
| -rw-r--r-- | contrib/ltree/crc32.c | 2 | ||||
| -rw-r--r-- | contrib/ltree/lquery_op.c | 2 | ||||
| -rw-r--r-- | contrib/ltree/ltree_io.c | 2 | ||||
| -rw-r--r-- | contrib/ltree/ltree_op.c | 2 |
5 files changed, 5 insertions, 7 deletions
diff --git a/contrib/ltree/_ltree_gist.c b/contrib/ltree/_ltree_gist.c index c33ac4eedd2..6b14ed5150a 100644 --- a/contrib/ltree/_ltree_gist.c +++ b/contrib/ltree/_ltree_gist.c @@ -9,11 +9,9 @@ #include "access/gist.h" #include "access/stratnum.h" -#include "port/pg_bitutils.h" - #include "crc32.h" #include "ltree.h" - +#include "port/pg_bitutils.h" PG_FUNCTION_INFO_V1(_ltree_compress); PG_FUNCTION_INFO_V1(_ltree_same); diff --git a/contrib/ltree/crc32.c b/contrib/ltree/crc32.c index 447e4b29602..0c3e45923b2 100644 --- a/contrib/ltree/crc32.c +++ b/contrib/ltree/crc32.c @@ -16,8 +16,8 @@ #define TOLOWER(x) (x) #endif -#include "utils/pg_crc.h" #include "crc32.h" +#include "utils/pg_crc.h" unsigned int ltree_crc32_sz(char *buf, int size) diff --git a/contrib/ltree/lquery_op.c b/contrib/ltree/lquery_op.c index 62172d5ea14..fa47710439b 100644 --- a/contrib/ltree/lquery_op.c +++ b/contrib/ltree/lquery_op.c @@ -8,8 +8,8 @@ #include <ctype.h> #include "catalog/pg_collation.h" -#include "utils/formatting.h" #include "ltree.h" +#include "utils/formatting.h" PG_FUNCTION_INFO_V1(ltq_regex); PG_FUNCTION_INFO_V1(ltq_rregex); diff --git a/contrib/ltree/ltree_io.c b/contrib/ltree/ltree_io.c index f54f0374436..900a46a9e7d 100644 --- a/contrib/ltree/ltree_io.c +++ b/contrib/ltree/ltree_io.c @@ -7,9 +7,9 @@ #include <ctype.h> +#include "crc32.h" #include "ltree.h" #include "utils/memutils.h" -#include "crc32.h" PG_FUNCTION_INFO_V1(ltree_in); PG_FUNCTION_INFO_V1(ltree_out); diff --git a/contrib/ltree/ltree_op.c b/contrib/ltree/ltree_op.c index df61c63180c..070868f25af 100644 --- a/contrib/ltree/ltree_op.c +++ b/contrib/ltree/ltree_op.c @@ -9,10 +9,10 @@ #include "access/htup_details.h" #include "catalog/pg_statistic.h" +#include "ltree.h" #include "utils/builtins.h" #include "utils/lsyscache.h" #include "utils/selfuncs.h" -#include "ltree.h" PG_MODULE_MAGIC; |
