aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2013-10-01 17:36:15 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2013-10-01 17:36:15 -0300
commitdddc91ddd33d5db07463f2f3f3a044ab98042cf1 (patch)
tree5dec7d004fda43a9e6035175f749c8f2296feb58
parent7ce569babddf7bc76657390032cb6cf6793476cc (diff)
downloadpostgresql-dddc91ddd33d5db07463f2f3f3a044ab98042cf1.tar.gz
postgresql-dddc91ddd33d5db07463f2f3f3a044ab98042cf1.zip
Remove broken PGXS code for pg_xlogdump
With the PGXS boilerplate in place, pg_xlogdump currently fails with an ominous error message that certain targets cannot be built because certain files do not exist. Remove that and instead throw a quick error message alerting the user of the actual problem, which should be easier to diagnose that the statu quo. Andres Freund
-rw-r--r--contrib/pg_xlogdump/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/contrib/pg_xlogdump/Makefile b/contrib/pg_xlogdump/Makefile
index 22bd8dc35a2..ada261c4dd0 100644
--- a/contrib/pg_xlogdump/Makefile
+++ b/contrib/pg_xlogdump/Makefile
@@ -13,15 +13,14 @@ RMGRDESCOBJS = $(patsubst %.c,%.o,$(RMGRDESCSOURCES))
EXTRA_CLEAN = $(RMGRDESCSOURCES) xlogreader.c
ifdef USE_PGXS
-PG_CONFIG = pg_config
-PGXS := $(shell $(PG_CONFIG) --pgxs)
-include $(PGXS)
-else
+$(error "pg_xlogdump cannot be built with PGXS")
+endif
+
subdir = contrib/pg_xlogdump
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
-endif
+
override CPPFLAGS := -DFRONTEND $(CPPFLAGS)