Re: speed up a logical replica setup
Euler Taveira <euler@eulerto.com>
Commits
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
pg_createsubscriber: Remove obsolete comment
- 71795d1cb41b 17.0 landed
- 1330843bb78e 18.0 landed
-
pg_createsubscriber: Fix an unpredictable recovery wait time.
- e5ba6a5ab62c 17.0 landed
- 03b08c8f5f3e 18.0 landed
-
Fix unstable test in 040_pg_createsubscriber.
- ae4e072bad5f 17.0 landed
- 9fd8b331dfe1 18.0 landed
-
Fix the testcase introduced in commit 81d20fbf7a.
- ae395f0f7edb 18.0 landed
- 14387ab06503 17.0 landed
-
Further weaken new pg_createsubscriber test on Windows.
- 55c309fc5b08 17.0 landed
- a1333ec048fb 18.0 landed
-
Temporarily(?) weaken new pg_createsubscriber test on Windows.
- 54508209178b 17.0 landed
-
Make pg_createsubscriber warn if publisher has two-phase commit enabled.
- 917754557cc0 17.0 landed
-
Make pg_createsubscriber more wary about quoting connection parameters.
- b3f5ccebd79d 17.0 landed
-
pg_createsubscriber: Remove failover replication slots on subscriber
- 81d20fbf7a03 17.0 landed
-
pg_createsubscriber: Remove replication slot check on primary
- b96391382626 17.0 landed
-
pg_createsubscriber: Only --recovery-timeout controls the end of recovery process
- 04c8634c0c4d 17.0 landed
-
pg_createsubscriber: creates a new logical replica from a standby server
- d44032d01463 17.0 landed
-
Add some const decorations
- 48018f1d8c12 17.0 landed
-
Add option force_initdb to PostgreSQL::Test::Cluster:init()
- ff9e1e764fcc 17.0 cited
-
Remove MSVC scripts
- 1301c80b2167 17.0 cited
Attachments
- v14-0001-Creates-a-new-logical-replica-from-a-standby-ser.patch (text/x-patch) patch v14-0001
On Thu, Feb 1, 2024, at 9:47 AM, Hayato Kuroda (Fujitsu) wrote: > I made fix patches to solve reported issues by Fabrízio. > > * v13-0001: Same as v11-0001 made by Euler. > * v13-0002: Fixes ERRORs while dropping replication slots [1]. > If you want to see codes which we get agreement, please apply until 0002. > === experimental patches === > * v13-0003: Avoids to use replication connections. The issue [2] was solved on my env. > * v13-0004: Removes -P option and use primary_conninfo instead. > * v13-0005: Refactors data structures Thanks for rebasing the proposed patches. I'm attaching a new patch. As I said in the previous email [1] I fixed some issues from your previous review: * use pg_fatal() if possible. There are some cases that it couldn't replace pg_log_error() + exit(1) because it requires a hint. * pg_resetwal output. Send standard output to /dev/null to avoid extra message. * check privileges. Make sure the current role can execute CREATE SUBSCRIPTION and pg_replication_origin_advance(). * log directory. Refactor code that setup the log file used as server log. * run with restricted token (Windows). * v13-0002. Merged. * v13-0003. I applied a modified version. I returned only the required information for each query. * group command-line options into a new struct CreateSubscriberOptions. The exception is the dry_run option. * rename functions that obtain system identifier. WIP I'm still working on the data structures to group options. I don't like the way it was grouped in v13-0005. There is too many levels to reach database name. The setup_subscriber() function requires the 3 data structures. The documentation update is almost there. I will include the modifications in the next patch. Regarding v13-0004, it seems a good UI that's why I wrote a comment about it. However, it comes with a restriction that requires a similar HBA rule for both regular and replication connections. Is it an acceptable restriction? We might paint ourselves into the corner. A reasonable proposal is not to remove this option. Instead, it should be optional. If it is not provided, primary_conninfo is used. [1] https://www.postgresql.org/message-id/80ce3f65-7ca3-471e-b1a4-24ac529ff4ea%40app.fastmail.com -- Euler Taveira EDB https://www.enterprisedb.com/