From: Heikki Linnakangas Date: Fri, 9 Jan 2015 09:13:56 +0000 (+0200) Subject: Reorder #includes to follow project style. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=d3484894b9a5ca1df006aae7c212d81eca02f2e9;p=users%2Fheikki%2Fpostgres.git Reorder #includes to follow project style. --- diff --git a/contrib/pg_rewind/copy_fetch.c b/contrib/pg_rewind/copy_fetch.c index 4695d0ecac..6b6f810826 100644 --- a/contrib/pg_rewind/copy_fetch.c +++ b/contrib/pg_rewind/copy_fetch.c @@ -9,8 +9,6 @@ */ #include "postgres_fe.h" -#include "catalog/catalog.h" - #include #include #include @@ -23,6 +21,8 @@ #include "filemap.h" #include "datapagemap.h" +#include "catalog/catalog.h" + static void recurse_dir(const char *datadir, const char *path, process_file_callback_t callback); diff --git a/contrib/pg_rewind/filemap.c b/contrib/pg_rewind/filemap.c index 41d3c9ef92..aca3f9349b 100644 --- a/contrib/pg_rewind/filemap.c +++ b/contrib/pg_rewind/filemap.c @@ -17,6 +17,7 @@ #include "datapagemap.h" #include "filemap.h" #include "pg_rewind.h" + #include "catalog/pg_tablespace.h" #include "storage/fd.h" diff --git a/contrib/pg_rewind/libpq_fetch.c b/contrib/pg_rewind/libpq_fetch.c index 5172acd3bf..b5f5314a4a 100644 --- a/contrib/pg_rewind/libpq_fetch.c +++ b/contrib/pg_rewind/libpq_fetch.c @@ -9,9 +9,6 @@ */ #include "postgres_fe.h" -#include "catalog/catalog.h" -#include "catalog/pg_type.h" - #include #include #include @@ -22,13 +19,15 @@ #include #include -#include "libpq-fe.h" - #include "pg_rewind.h" #include "fetch.h" #include "filemap.h" #include "datapagemap.h" +#include "libpq-fe.h" +#include "catalog/catalog.h" +#include "catalog/pg_type.h" + static PGconn *conn = NULL; #define CHUNKSIZE 1000000 diff --git a/contrib/pg_rewind/parsexlog.c b/contrib/pg_rewind/parsexlog.c index be5646b535..f661245bed 100644 --- a/contrib/pg_rewind/parsexlog.c +++ b/contrib/pg_rewind/parsexlog.c @@ -14,11 +14,11 @@ #undef FRONTEND #include "postgres.h" +#include + #include "pg_rewind.h" #include "filemap.h" -#include - #include "access/rmgr.h" #include "access/xlog_internal.h" #include "access/xlogreader.h" diff --git a/contrib/pg_rewind/pg_rewind.c b/contrib/pg_rewind/pg_rewind.c index 853cefb985..6accfa8343 100644 --- a/contrib/pg_rewind/pg_rewind.c +++ b/contrib/pg_rewind/pg_rewind.c @@ -9,6 +9,11 @@ */ #include "postgres_fe.h" +#include +#include +#include +#include + #include "pg_rewind.h" #include "fetch.h" #include "filemap.h" @@ -17,14 +22,8 @@ #include "access/xlog_internal.h" #include "catalog/catversion.h" #include "catalog/pg_control.h" -#include "storage/bufpage.h" - #include "getopt_long.h" - -#include -#include -#include -#include +#include "storage/bufpage.h" static void usage(const char *progname);