Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL

Поиск
Список
Период
Сортировка
Искать
От
Bharath Rupireddy
Тема
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL
Дата
Msg-id
CALj2ACUT+DB8PhF6ja8f-LP76cEappXrJuhzrKd81a90UmrnYA@mail.gmail.com
Ответ на
Список
Дерево обсуждения
[PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Matthias van de Meent <boekewurm+postgres@gmail.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL "Drouvot, Bertrand" <bdrouvot@amazon.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Ian Lawrence Barwick <barwick@gmail.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Justin Pryzby <pryzby@telsasoft.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Justin Pryzby <pryzby@telsasoft.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Justin Pryzby <pryzby@telsasoft.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL sho kato <kato-sho@fujitsu.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Justin Pryzby <pryzby@telsasoft.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Justin Pryzby <pryzby@telsasoft.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Justin Pryzby <pryzby@telsasoft.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Andrey Borodin <x4mmm@yandex-team.ru>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Bharath Rupireddy <bharath.rupireddyforpostgres@gmail.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL David Christensen <david.christensen@crunchydata.com>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Michael Paquier <michael@paquier.xyz>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Alvaro Herrera <alvherre@alvh.no-ip.org>
Re: [PATCH] Teach pg_waldump to extract FPIs from the WAL Michael Paquier <michael@paquier.xyz>
On Fri, Dec 16, 2022 at 4:47 AM David Christensen
 wrote:
>
> On Thu, Dec 15, 2022 at 12:36 AM Michael Paquier  wrote:
> >
> > On Wed, Dec 14, 2022 at 04:44:34PM -0600, David Christensen wrote:
> > > I can get one sent in tomorrow.
>
> This v10 should incorporate your feedback as well as Bharath's.

Thanks for the patch. Here're some minor comments:

1. +my $node =  PostgreSQL::Test::Cluster->new('primary');
Can the name be other than 'primary' because we don't create a standby
for this test? Something like - 'node_a' or 'node_extract_fpi' or some
other.

2. +$node->init(extra => ['-k'], allows_streaming => 1);
When enabled with allows_streaming, there are a bunch of things that
happen to the node while initializing, I don't think we need all of
them for this.

3. +$node->init(extra => ['-k'], allows_streaming => 1);
Can we use --data-checksums instead of -k for more readability?
Perhaps, a comment on why we need that option helps greatly.

4.
+        page = (Page) buf.data;
+
+        if (!XLogRecHasBlockRef(record, block_id))
+            continue;
+
+        if (!XLogRecHasBlockImage(record, block_id))
+            continue;
+
+        if (!RestoreBlockImage(record, block_id, page))
+            continue;
Can you shift  page = (Page) buf.data; just before the last if
condition RestoreBlockImage() so that it doesn't get executed for the
other two continue statements?

-- 
Bharath Rupireddy
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com


В списке pgsql-hackers по дате отправления
От: Nitin Jadhav
Дата:
От: Amit Kapila
Дата:
FAQ