Re: Switching XLog source from archive to streaming when primary available
Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
From: Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
To: Ian Lawrence Barwick <barwick@gmail.com>
Cc: Nathan Bossart <nathandbossart@gmail.com>,
Kyotaro Horiguchi <horikyota.ntt@gmail.com>, Cary Huang <cary.huang@highgo.ca>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, SATYANARAYANA NARLAPURAM <satyanarlapuram@gmail.com>
Date: 2023-12-28T11:56:19Z
Lists: pgsql-hackers
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add basic TAP tests for the low-level backup method, take two
- 071e3ad59d6f 17.0 cited
-
Add a failover option to subscriptions.
- 776621a5e479 17.0 cited
-
Make all Perl warnings fatal
- c5385929593d 17.0 cited
-
Add PostgreSQL::Test::Cluster::advance_wal
- c161ab74f76a 17.0 cited
-
Rename wal_keep_segments to wal_keep_size.
- c3fe108c025e 14.0 cited
Attachments
- v15-0001-Allow-standby-to-switch-WAL-source-from-archive-.patch (application/x-patch) patch v15-0001
On Sat, Oct 21, 2023 at 11:59 PM Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com> wrote: > > On Fri, Jul 21, 2023 at 12:38 PM Bharath Rupireddy > <bharath.rupireddyforpostgres@gmail.com> wrote: > > > > Needed a rebase. I'm attaching the v13 patch for further consideration. > > Needed a rebase. I'm attaching the v14 patch. It also has the following changes: > > - Ran pgindent on the new source code. > - Ran pgperltidy on the new TAP test. > - Improved the newly added TAP test a bit. Used the new wait_for_log > core TAP function in place of custom find_in_log. > > Thoughts? I took a closer look at v14 and came up with the following changes: 1. Used advance_wal introduced by commit c161ab74f7. 2. Simplified the core logic and new TAP tests. 3. Reworded the comments and docs. 4. Simplified new DEBUG messages. I've attached the v15 patch for further review. -- Bharath Rupireddy PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com