mirror of
https://github.com/postgres/postgres.git
synced 2025-12-04 12:02:48 +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:
@@ -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