2010-09-21 04:08:53 +08:00
|
|
|
# contrib/Makefile
|
2000-06-16 02:55:34 +08:00
|
|
|
|
2000-07-09 21:14:19 +08:00
|
|
|
subdir = contrib
|
|
|
|
top_builddir = ..
|
2000-09-19 04:11:37 +08:00
|
|
|
include $(top_builddir)/src/Makefile.global
|
2000-06-16 02:55:34 +08:00
|
|
|
|
2009-08-08 04:50:22 +08:00
|
|
|
SUBDIRS = \
|
2006-05-30 21:25:57 +08:00
|
|
|
adminpack \
|
2010-11-27 20:22:25 +08:00
|
|
|
auth_delay \
|
2008-11-19 10:59:28 +08:00
|
|
|
auto_explain \
|
2009-03-26 07:20:01 +08:00
|
|
|
btree_gin \
|
2001-08-23 02:27:54 +08:00
|
|
|
btree_gist \
|
2001-08-24 00:54:25 +08:00
|
|
|
chkpass \
|
2008-07-30 02:31:20 +08:00
|
|
|
citext \
|
2000-12-12 04:40:59 +08:00
|
|
|
cube \
|
2001-06-19 01:20:56 +08:00
|
|
|
dblink \
|
2007-10-16 05:36:50 +08:00
|
|
|
dict_int \
|
|
|
|
dict_xsyn \
|
2010-09-28 08:55:27 +08:00
|
|
|
dummy_seclabel \
|
2003-07-01 03:58:57 +08:00
|
|
|
earthdistance \
|
2011-02-21 03:06:59 +08:00
|
|
|
file_fdw \
|
2001-08-23 02:27:54 +08:00
|
|
|
fuzzystrmatch \
|
2006-09-09 12:07:52 +08:00
|
|
|
hstore \
|
2002-08-30 09:44:00 +08:00
|
|
|
intagg \
|
2001-01-16 06:20:00 +08:00
|
|
|
intarray \
|
2006-09-09 12:07:52 +08:00
|
|
|
isn \
|
2001-02-10 20:07:12 +08:00
|
|
|
lo \
|
2002-07-31 00:40:34 +08:00
|
|
|
ltree \
|
2001-02-10 11:44:06 +08:00
|
|
|
oid2name \
|
2007-05-18 03:11:25 +08:00
|
|
|
pageinspect \
|
2009-11-19 05:57:56 +08:00
|
|
|
passwordcheck \
|
2010-06-15 00:17:56 +08:00
|
|
|
pg_archivecleanup \
|
2005-03-12 23:36:24 +08:00
|
|
|
pg_buffercache \
|
2006-02-12 11:55:53 +08:00
|
|
|
pg_freespacemap \
|
2013-12-20 21:08:01 +08:00
|
|
|
pg_prewarm \
|
2007-02-08 23:09:47 +08:00
|
|
|
pg_standby \
|
2009-01-05 06:19:59 +08:00
|
|
|
pg_stat_statements \
|
2011-01-22 08:27:25 +08:00
|
|
|
pg_test_fsync \
|
2012-03-28 04:14:00 +08:00
|
|
|
pg_test_timing \
|
2004-06-01 13:15:47 +08:00
|
|
|
pg_trgm \
|
2010-05-13 00:50:58 +08:00
|
|
|
pg_upgrade \
|
2010-05-13 09:03:01 +08:00
|
|
|
pg_upgrade_support \
|
2000-06-16 02:55:34 +08:00
|
|
|
pgbench \
|
2001-09-29 11:11:58 +08:00
|
|
|
pgcrypto \
|
2006-04-23 10:17:59 +08:00
|
|
|
pgrowlocks \
|
2001-10-01 09:52:38 +08:00
|
|
|
pgstattuple \
|
2013-02-23 05:56:42 +08:00
|
|
|
pg_xlogdump \
|
2013-02-21 18:26:23 +08:00
|
|
|
postgres_fdw \
|
2001-02-10 20:07:12 +08:00
|
|
|
seg \
|
|
|
|
spi \
|
2002-07-31 00:32:20 +08:00
|
|
|
tablefunc \
|
2012-01-20 12:15:15 +08:00
|
|
|
tcn \
|
Introduce logical decoding.
This feature, building on previous commits, allows the write-ahead log
stream to be decoded into a series of logical changes; that is,
inserts, updates, and deletes and the transactions which contain them.
It is capable of handling decoding even across changes to the schema
of the effected tables. The output format is controlled by a
so-called "output plugin"; an example is included. To make use of
this in a real replication system, the output plugin will need to be
modified to produce output in the format appropriate to that system,
and to perform filtering.
Currently, information can be extracted from the logical decoding
system only via SQL; future commits will add the ability to stream
changes via walsender.
Andres Freund, with review and other contributions from many other
people, including Álvaro Herrera, Abhijit Menon-Sen, Peter Gheogegan,
Kevin Grittner, Robert Haas, Heikki Linnakangas, Fujii Masao, Abhijit
Menon-Sen, Michael Paquier, Simon Riggs, Craig Ringer, and Steve
Singer.
2014-03-04 05:32:18 +08:00
|
|
|
test_decoding \
|
2007-10-16 05:36:50 +08:00
|
|
|
test_parser \
|
2014-01-15 01:24:12 +08:00
|
|
|
test_shm_mq \
|
2007-11-14 05:04:45 +08:00
|
|
|
tsearch2 \
|
2009-08-18 18:34:39 +08:00
|
|
|
unaccent \
|
Background worker processes
Background workers are postmaster subprocesses that run arbitrary
user-specified code. They can request shared memory access as well as
backend database connections; or they can just use plain libpq frontend
database connections.
Modules listed in shared_preload_libraries can register background
workers in their _PG_init() function; this is early enough that it's not
necessary to provide an extra GUC option, because the necessary extra
resources can be allocated early on. Modules can install more than one
bgworker, if necessary.
Care is taken that these extra processes do not interfere with other
postmaster tasks: only one such process is started on each ServerLoop
iteration. This means a large number of them could be waiting to be
started up and postmaster is still able to quickly service external
connection requests. Also, shutdown sequence should not be impacted by
a worker process that's reasonably well behaved (i.e. promptly responds
to termination signals.)
The current implementation lets worker processes specify their start
time, i.e. at what point in the server startup process they are to be
started: right after postmaster start (in which case they mustn't ask
for shared memory access), when consistent state has been reached
(useful during recovery in a HOT standby server), or when recovery has
terminated (i.e. when normal backends are allowed).
In case of a bgworker crash, actions to take depend on registration
data: if shared memory was requested, then all other connections are
taken down (as well as other bgworkers), just like it were a regular
backend crashing. The bgworker itself is restarted, too, within a
configurable timeframe (which can be configured to be never).
More features to add to this framework can be imagined without much
effort, and have been discussed, but this seems good enough as a useful
unit already.
An elementary sample module is supplied.
Author: Álvaro Herrera
This patch is loosely based on prior patches submitted by KaiGai Kohei,
and unsubmitted code by Simon Riggs.
Reviewed by: KaiGai Kohei, Markus Wanner, Andres Freund,
Heikki Linnakangas, Simon Riggs, Amit Kapila
2012-12-07 01:57:52 +08:00
|
|
|
vacuumlo \
|
|
|
|
worker_spi
|
2001-09-06 18:49:30 +08:00
|
|
|
|
2006-09-04 23:07:46 +08:00
|
|
|
ifeq ($(with_openssl),yes)
|
2009-08-08 04:50:22 +08:00
|
|
|
SUBDIRS += sslinfo
|
2011-07-04 01:55:02 +08:00
|
|
|
else
|
|
|
|
ALWAYS_SUBDIRS += sslinfo
|
2006-09-04 23:07:46 +08:00
|
|
|
endif
|
|
|
|
|
2007-04-22 01:26:18 +08:00
|
|
|
ifeq ($(with_ossp_uuid),yes)
|
2009-08-08 04:50:22 +08:00
|
|
|
SUBDIRS += uuid-ossp
|
2011-07-04 01:55:02 +08:00
|
|
|
else
|
|
|
|
ALWAYS_SUBDIRS += uuid-ossp
|
2007-04-22 01:26:18 +08:00
|
|
|
endif
|
|
|
|
|
2007-04-15 20:48:24 +08:00
|
|
|
ifeq ($(with_libxml),yes)
|
2009-08-08 04:50:22 +08:00
|
|
|
SUBDIRS += xml2
|
2011-07-04 01:55:02 +08:00
|
|
|
else
|
|
|
|
ALWAYS_SUBDIRS += xml2
|
2007-04-15 20:48:24 +08:00
|
|
|
endif
|
|
|
|
|
2011-01-24 09:44:48 +08:00
|
|
|
ifeq ($(with_selinux),yes)
|
|
|
|
SUBDIRS += sepgsql
|
2011-07-04 01:55:02 +08:00
|
|
|
else
|
|
|
|
ALWAYS_SUBDIRS += sepgsql
|
2011-01-24 09:44:48 +08:00
|
|
|
endif
|
|
|
|
|
2001-09-06 18:49:30 +08:00
|
|
|
# Missing:
|
|
|
|
# start-scripts \ (does not have a makefile)
|
2007-04-15 20:48:24 +08:00
|
|
|
|
2001-07-07 07:07:20 +08:00
|
|
|
|
2010-11-13 04:15:16 +08:00
|
|
|
$(recurse)
|
2011-07-04 01:55:02 +08:00
|
|
|
$(recurse_always)
|