summaryrefslogtreecommitdiff
path: root/src/common/logging.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/logging.c')
-rw-r--r--src/common/logging.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/logging.c b/src/common/logging.c
index f3fc0b8262f..6a3a437a34b 100644
--- a/src/common/logging.c
+++ b/src/common/logging.c
@@ -7,6 +7,11 @@
*
*-------------------------------------------------------------------------
*/
+
+#ifndef FRONTEND
+#error "This file is not expected to be compiled for backend code"
+#endif
+
#include "postgres_fe.h"
#include <unistd.h>