mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-21 14:23:23 +02:00
As a demonstration of the sort of thing that can be done by adding a custom backup target, this defines a 'shell' target which executes a command defined by the system administrator. The command is executed once for each tar archive generate by the backup and once for the backup manifest, if any. Each time the command is executed, it receives the contents of th file for which it is executed via standard input. The configured command can use %f to refer to the name of the archive (e.g. base.tar, $TABLESPACE_OID.tar, backup_manifest) and %d to refer to the target detail (pg_basebackup --target shell:DETAIL). A target detail is required if %d appears in the configured command and forbidden if it does not. Patch by me, reviewed by Abhijit Menon-Sen. Discussion: http://postgr.es/m/CA+TgmoaqvdT-u3nt+_kkZ7bgDAyqDB0i-+XOMmr5JN2Rd37hxw@mail.gmail.com
97 lines
1.5 KiB
Makefile
97 lines
1.5 KiB
Makefile
# contrib/Makefile
|
|
|
|
subdir = contrib
|
|
top_builddir = ..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
SUBDIRS = \
|
|
adminpack \
|
|
amcheck \
|
|
auth_delay \
|
|
auto_explain \
|
|
basic_archive \
|
|
basebackup_to_shell \
|
|
bloom \
|
|
btree_gin \
|
|
btree_gist \
|
|
citext \
|
|
cube \
|
|
dblink \
|
|
dict_int \
|
|
dict_xsyn \
|
|
earthdistance \
|
|
file_fdw \
|
|
fuzzystrmatch \
|
|
hstore \
|
|
intagg \
|
|
intarray \
|
|
isn \
|
|
lo \
|
|
ltree \
|
|
oid2name \
|
|
old_snapshot \
|
|
pageinspect \
|
|
passwordcheck \
|
|
pg_buffercache \
|
|
pg_freespacemap \
|
|
pg_prewarm \
|
|
pg_stat_statements \
|
|
pg_surgery \
|
|
pg_trgm \
|
|
pgrowlocks \
|
|
pgstattuple \
|
|
pg_visibility \
|
|
postgres_fdw \
|
|
seg \
|
|
spi \
|
|
tablefunc \
|
|
tcn \
|
|
test_decoding \
|
|
tsm_system_rows \
|
|
tsm_system_time \
|
|
unaccent \
|
|
vacuumlo
|
|
|
|
ifeq ($(with_ssl),openssl)
|
|
SUBDIRS += pgcrypto sslinfo
|
|
else
|
|
ALWAYS_SUBDIRS += pgcrypto sslinfo
|
|
endif
|
|
|
|
ifneq ($(with_uuid),no)
|
|
SUBDIRS += uuid-ossp
|
|
else
|
|
ALWAYS_SUBDIRS += uuid-ossp
|
|
endif
|
|
|
|
ifeq ($(with_libxml),yes)
|
|
SUBDIRS += xml2
|
|
else
|
|
ALWAYS_SUBDIRS += xml2
|
|
endif
|
|
|
|
ifeq ($(with_selinux),yes)
|
|
SUBDIRS += sepgsql
|
|
else
|
|
ALWAYS_SUBDIRS += sepgsql
|
|
endif
|
|
|
|
ifeq ($(with_perl),yes)
|
|
SUBDIRS += bool_plperl hstore_plperl jsonb_plperl
|
|
else
|
|
ALWAYS_SUBDIRS += bool_plperl hstore_plperl jsonb_plperl
|
|
endif
|
|
|
|
ifeq ($(with_python),yes)
|
|
SUBDIRS += hstore_plpython jsonb_plpython ltree_plpython
|
|
else
|
|
ALWAYS_SUBDIRS += hstore_plpython jsonb_plpython ltree_plpython
|
|
endif
|
|
|
|
# Missing:
|
|
# start-scripts \ (does not have a makefile)
|
|
|
|
|
|
$(recurse)
|
|
$(recurse_always)
|