diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2010-01-15 09:19:10 +0000 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2010-01-15 09:19:10 +0000 |
commit | 40f908bdcdc726fc11912cd95dfd2f89603d1f37 (patch) | |
tree | fcbbda839e58184fc284d261cc5a0f5e8ac921f3 /src/include/storage/proc.h | |
parent | 4cbe473938779ec414d90c2063c4398e68a70838 (diff) |
Introduce Streaming Replication.
This includes two new kinds of postmaster processes, walsenders and
walreceiver. Walreceiver is responsible for connecting to the primary server
and streaming WAL to disk, while walsender runs in the primary server and
streams WAL from disk to the client.
Documentation still needs work, but the basics are there. We will probably
pull the replication section to a new chapter later on, as well as the
sections describing file-based replication. But let's do that as a separate
patch, so that it's easier to see what has been added/changed. This patch
also adds a new section to the chapter about FE/BE protocol, documenting the
protocol used by walsender/walreceivxer.
Bump catalog version because of two new functions,
pg_last_xlog_receive_location() and pg_last_xlog_replay_location(), for
monitoring the progress of replication.
Fujii Masao, with additional hacking by me
Diffstat (limited to 'src/include/storage/proc.h')
-rw-r--r-- | src/include/storage/proc.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/include/storage/proc.h b/src/include/storage/proc.h index ba725d8fa81..cee02c359d7 100644 --- a/src/include/storage/proc.h +++ b/src/include/storage/proc.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2010, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/storage/proc.h,v 1.116 2010/01/02 16:58:08 momjian Exp $ + * $PostgreSQL: pgsql/src/include/storage/proc.h,v 1.117 2010/01/15 09:19:09 heikki Exp $ * *------------------------------------------------------------------------- */ @@ -152,10 +152,10 @@ typedef struct PROC_HDR * ie things that aren't full-fledged backends but need shmem access. * * Background writer and WAL writer run during normal operation. Startup - * process also consumes one slot, but WAL writer is launched only after - * startup has exited, so we only need 2 slots. + * process and WAL receiver also consume 2 slots, but WAL writer is + * launched only after startup has exited, so we only need 3 slots. */ -#define NUM_AUXILIARY_PROCS 2 +#define NUM_AUXILIARY_PROCS 3 /* configurable options */ |