Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd44032d

Browse files
committed
pg_createsubscriber: creates a new logical replica from a standby server
It must be run on the target server and should be able to connect tothe source server (publisher) and the target server (subscriber). Alltables in the specified database(s) are included in the logicalreplication setup. A pair of publication and subscription objects arecreated for each database.The main advantage of pg_createsubscriber over the common logicalreplication setup is the initial data copy. It also reduces thecatchup phase.Some prerequisites must be met to successfully run it. It isbasically the logical replication requirements. It starts creating apublication using FOR ALL TABLES and a replication slot for eachspecified database. Write recovery parameters into the target datadirectory and start the target server. It specifies the LSN of thelast replication slot (replication start point) up to which therecovery will proceed. Wait until the target server is promoted.Create one subscription per specified database (using publication andreplication slot created in a previous step) on the target server.Set the replication progress to the replication start point for eachsubscription. Enable the subscription for each specified database onthe target server. And finally, change the system identifier on thetarget server.Author: Euler Taveira <euler.taveira@enterprisedb.com>Reviewed-by: Hayato Kuroda <kuroda.hayato@fujitsu.com>Reviewed-by: Amit Kapila <amit.kapila16@gmail.com>Reviewed-by: Shlok Kyal <shlok.kyal.oss@gmail.com>Reviewed-by: Vignesh C <vignesh21@gmail.com>Reviewed-by: Shubham Khanna <khannashubham1197@gmail.com>Reviewed-by: Ashutosh Bapat <ashutosh.bapat.oss@gmail.com>Reviewed-by: Peter Eisentraut <peter@eisentraut.org>Discussion:https://www.postgresql.org/message-id/flat/5ac50071-f2ed-4ace-a8fd-b892cffd33eb@www.fastmail.com
1 parenta11f330 commitd44032d

File tree

9 files changed

+3059
-3
lines changed

9 files changed

+3059
-3
lines changed

‎doc/src/sgml/ref/allfiles.sgml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ Complete list of usable sgml source files in this directory.
205205
<!ENTITY pgCombinebackup SYSTEM "pg_combinebackup.sgml">
206206
<!ENTITY pgConfig SYSTEM "pg_config-ref.sgml">
207207
<!ENTITY pgControldata SYSTEM "pg_controldata.sgml">
208+
<!ENTITY pgCreateSubscriber SYSTEM "pg_createsubscriber.sgml">
208209
<!ENTITY pgCtl SYSTEM "pg_ctl-ref.sgml">
209210
<!ENTITY pgDump SYSTEM "pg_dump.sgml">
210211
<!ENTITY pgDumpall SYSTEM "pg_dumpall.sgml">

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp