mirror of
https://github.com/postgres/postgres.git
synced 2025-05-26 18:17:33 +03:00
This syncs contrib/pg_upgrade in the 9.2 branch with HEAD, except for the HEAD changes related to converting XLogRecPtr to 64-bit int. It includes back-patching these commits: 666d494d19dbd5dc7a177709a2f7069913f8ab89 pg_upgrade: abstract out copying of files from old cluster to new 7afa8bed65ea925208f128048f3a528a64e1319a pg_upgrade: Run the created scripts in the test suite ab577e63faf792593ca728625a8ef0b1dfaf7500 Remove analyze_new_cluster.sh on make clean, too 34c02044ed7e7defde5a853b26dcd806c872d974 Fix thinko in comment 088c065ce8e405fafbfa966937184ece9defcf20 pg_upgrade: Fix exec_prog API to be less flaky f763b77193b04eba03a1f4ce46df34dc0348419e Fix pg_upgrade to cope with non-default unix_socket_directory scenarios.
33 lines
981 B
Makefile
33 lines
981 B
Makefile
# contrib/pg_upgrade/Makefile
|
|
|
|
PGFILEDESC = "pg_upgrade - an in-place binary upgrade utility"
|
|
PGAPPICON = win32
|
|
|
|
PROGRAM = pg_upgrade
|
|
OBJS = check.o controldata.o dump.o exec.o file.o function.o info.o \
|
|
option.o page.o pg_upgrade.o relfilenode.o server.o \
|
|
tablespace.o util.o version.o version_old_8_3.o $(WIN32RES)
|
|
|
|
PG_CPPFLAGS = -DFRONTEND -DDLSUFFIX=\"$(DLSUFFIX)\" -I$(srcdir) -I$(libpq_srcdir)
|
|
PG_LIBS = $(libpq_pgport)
|
|
|
|
EXTRA_CLEAN = analyze_new_cluster.sh delete_old_cluster.sh log/ tmp_check/
|
|
|
|
ifdef USE_PGXS
|
|
PG_CONFIG = pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|
|
else
|
|
subdir = contrib/pg_upgrade
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
endif
|
|
|
|
check: test.sh all
|
|
MAKE=$(MAKE) bindir=$(bindir) libdir=$(libdir) $(SHELL) $< --install
|
|
|
|
# disabled because it upsets the build farm
|
|
#installcheck: test.sh
|
|
# MAKE=$(MAKE) bindir=$(bindir) libdir=$(libdir) $(SHELL) $<
|