summaryrefslogtreecommitdiff
path: root/src/bin/pg_rewind/logging.h
diff options
context:
space:
mode:
authorTom Lane2019-05-14 17:11:23 +0000
committerTom Lane2019-05-14 17:11:23 +0000
commit53ddefbaf8a0493d2c1fa0b18bfaba72da556985 (patch)
tree926b4b8b961310df9a32d69f9648eb21100d9ef4 /src/bin/pg_rewind/logging.h
parent7c850320d8cfa5503ecec61c2559661b924f7595 (diff)
Remove pg_rewind's private logging.h/logging.c files.
The existence of these files became rather confusing with the introduction of a widely-known logging.h header in commit cc8d41511. (Indeed, there's already some duplicative #includes here, perhaps betraying such confusion.) The only thing left in them, after that commit, is a progress-reporting function that's neither general-purpose nor tied in any way to other logging infrastructure. Hence, let's just move that function to pg_rewind.c, and get rid of the separate files. Discussion: https://postgr.es/m/[email protected]
Diffstat (limited to 'src/bin/pg_rewind/logging.h')
-rw-r--r--src/bin/pg_rewind/logging.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/bin/pg_rewind/logging.h b/src/bin/pg_rewind/logging.h
deleted file mode 100644
index 81e17ac1f2c..00000000000
--- a/src/bin/pg_rewind/logging.h
+++ /dev/null
@@ -1,25 +0,0 @@
-/*-------------------------------------------------------------------------
- *
- * logging.h
- * prototypes for logging functions
- *
- *
- * Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
- * Portions Copyright (c) 1994, Regents of the University of California
- *
- *-------------------------------------------------------------------------
- */
-#ifndef PG_REWIND_LOGGING_H
-#define PG_REWIND_LOGGING_H
-
-#include "fe_utils/logging.h"
-
-/* progress counters */
-extern uint64 fetch_size;
-extern uint64 fetch_done;
-
-extern void progress_report(bool force);
-
-#define pg_fatal(...) do { pg_log_fatal(__VA_ARGS__); exit(1); } while(0)
-
-#endif /* PG_REWIND_LOGGING_H */