RE: Wrong comment for ReplicationSlotCreate - Mailing list pgsql-hackers

From Hayato Kuroda (Fujitsu)
Subject RE: Wrong comment for ReplicationSlotCreate
Date
Msg-id TY7PR01MB145544AAAE6914EEE0A0C8B48F586A@TY7PR01MB14554.jpnprd01.prod.outlook.com
Whole thread Raw
In response to Wrong comment for ReplicationSlotCreate  (Daniil Davydov <3danissimo@gmail.com>)
Responses Re: Wrong comment for ReplicationSlotCreate
List pgsql-hackers
Dear Daniil, Chao,

I was the main author of 1462aad2. It is enough to remove outdated comments atop
the definition. In other words, your patch looks good to me.

If needed, we can also notify developers that the two-phase option should not be
altered while decoding WAL records. In logical replication, we ensure that the
subscription is disabled and there are no apply workers. However, I don't think
such comments can be atop the ReplicationSlotCreate(). Maybe around
ReplicationSlotAlter(), but it may be out of scope of the initial motivation.

By the way, the comment may have been broken since a8fd13. Even when the
subscription was defined with two_phase=on, the backend creates the slot with
two_phase = off. The configuration is changed after the tablesync is done.

Best regards,
Hayato Kuroda
FUJITSU LIMITED


pgsql-hackers by date:

Previous
From: Chengpeng Yan
Date:
Subject: Re: Add a greedy join search algorithm to handle large join problems
Next
From: shveta malik
Date:
Subject: Re: Proposal: Conflict log history table for Logical Replication