mirror of
https://github.com/postgres/postgres.git
synced 2025-08-08 06:02:22 +03:00
Logical replication
- Add PUBLICATION catalogs and DDL - Add SUBSCRIPTION catalog and DDL - Define logical replication protocol and output plugin - Add logical replication workers From: Petr Jelinek <petr@2ndquadrant.com> Reviewed-by: Steve Singer <steve@ssinger.info> Reviewed-by: Andres Freund <andres@anarazel.de> Reviewed-by: Erik Rijkers <er@xs4all.nl> Reviewed-by: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
This commit is contained in:
doc/src/sgml
catalogs.sgmlconfig.sgmlfilelist.sgmlfunc.sgmllogical-replication.sgmlmonitoring.sgmlpostgres.sgmlprotocol.sgml
ref
allfiles.sgmlalter_publication.sgmlalter_subscription.sgmlcreate_publication.sgmlcreate_subscription.sgmldrop_publication.sgmldrop_subscription.sgmlpg_dump.sgmlpsql-ref.sgml
reference.sgmlsrc
Makefile
backend
access
transam
catalog
Makefileaclchk.ccatalog.cdependency.cobjectaddress.cpg_publication.cpg_shdepend.cpg_subscription.csystem_views.sql
commands
Makefilealter.cdbcommands.cdefine.cdropcmds.cevent_trigger.cpublicationcmds.csubscriptioncmds.ctablecmds.c
executor
nodes
parser
postmaster
replication
storage
tcop
utils
bin
pg_dump
psql
include
catalog
commands
executor
nodes
parser
pgstat.hreplication
logicallauncher.hlogicalproto.hlogicalrelation.hlogicalworker.hpgoutput.hwalreceiver.hworker_internal.h
storage
utils
test
@@ -380,7 +380,9 @@ WAL archiving can be enabled on this node by passing the keyword parameter
|
||||
has_archiving => 1. This is disabled by default.
|
||||
|
||||
postgresql.conf can be set up for replication by passing the keyword
|
||||
parameter allows_streaming => 1. This is disabled by default.
|
||||
parameter allows_streaming => 'logical' or 'physical' (passing 1 will also
|
||||
suffice for physical replication) depending on type of replication that
|
||||
should be enabled. This is disabled by default.
|
||||
|
||||
The new node is set up in a fast but unsafe configuration where fsync is
|
||||
disabled.
|
||||
@@ -415,7 +417,16 @@ sub init
|
||||
|
||||
if ($params{allows_streaming})
|
||||
{
|
||||
if ($params{allows_streaming} eq "logical")
|
||||
{
|
||||
print $conf "wal_level = logical\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
print $conf "wal_level = replica\n";
|
||||
}
|
||||
print $conf "max_wal_senders = 5\n";
|
||||
print $conf "max_replication_slots = 5\n";
|
||||
print $conf "wal_keep_segments = 20\n";
|
||||
print $conf "max_wal_size = 128MB\n";
|
||||
print $conf "shared_buffers = 1MB\n";
|
||||
|
Reference in New Issue
Block a user