mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2024-11-24 08:52:38 +02:00
308d00b80c
The system function used up to now was pg_xlogfile_name_offset, which cannot be used on a node in recovery, and it was the only way present to fetch the timeline ID of a backup, either incremental or full. So instead scan the control file of server and fetch the timeline from that. This also removes the restriction on which a backup could not be taken on a standby node. The next step being to have the possibility to take backups from streams.
45 lines
847 B
Makefile
45 lines
847 B
Makefile
PROGRAM = pg_rman
|
|
SRCS = \
|
|
backup.c \
|
|
catalog.c \
|
|
data.c \
|
|
delete.c \
|
|
dir.c \
|
|
fetch.c \
|
|
init.c \
|
|
parray.c \
|
|
pg_rman.c \
|
|
restore.c \
|
|
show.c \
|
|
status.c \
|
|
util.c \
|
|
validate.c \
|
|
xlog.c \
|
|
pgut/pgut.c \
|
|
pgut/pgut-port.c
|
|
OBJS = $(SRCS:.c=.o)
|
|
# pg_crc.c and are copied from PostgreSQL source tree.
|
|
|
|
# XXX for debug, add -g and disable optimization
|
|
PG_CPPFLAGS = -I$(libpq_srcdir)
|
|
PG_LIBS = $(libpq_pgport)
|
|
|
|
REGRESS = option init show_validate backup_restore
|
|
|
|
ifdef USE_PGXS
|
|
PG_CONFIG = pg_config
|
|
PGXS := $(shell $(PG_CONFIG) --pgxs)
|
|
include $(PGXS)
|
|
else
|
|
subdir = contrib/pg_rman
|
|
top_builddir = ../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
include $(top_srcdir)/contrib/contrib-global.mk
|
|
endif
|
|
|
|
# remove dependency to libxml2 and libxslt
|
|
LIBS := $(filter-out -lxml2, $(LIBS))
|
|
LIBS := $(filter-out -lxslt, $(LIBS))
|
|
|
|
$(OBJS): pg_rman.h
|