*/
#include "postgres_fe.h"
-#include "catalog/catalog.h"
-
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#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);
#include "datapagemap.h"
#include "filemap.h"
#include "pg_rewind.h"
+
#include "catalog/pg_tablespace.h"
#include "storage/fd.h"
*/
#include "postgres_fe.h"
-#include "catalog/catalog.h"
-#include "catalog/pg_type.h"
-
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-#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
#undef FRONTEND
#include "postgres.h"
+#include <unistd.h>
+
#include "pg_rewind.h"
#include "filemap.h"
-#include <unistd.h>
-
#include "access/rmgr.h"
#include "access/xlog_internal.h"
#include "access/xlogreader.h"
*/
#include "postgres_fe.h"
+#include <sys/stat.h>
+#include <fcntl.h>
+#include <time.h>
+#include <unistd.h>
+
#include "pg_rewind.h"
#include "fetch.h"
#include "filemap.h"
#include "access/xlog_internal.h"
#include "catalog/catversion.h"
#include "catalog/pg_control.h"
-#include "storage/bufpage.h"
-
#include "getopt_long.h"
-
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <time.h>
-#include <unistd.h>
+#include "storage/bufpage.h"
static void usage(const char *progname);