Re: [PATCH v2] Reuse slot helpers in pg_get_replication_slots and slot copy

From: Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
To: Tristan Su <sooqing(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: [PATCH v2] Reuse slot helpers in pg_get_replication_slots and slot copy
Date: 2026-12-02 06:55:05
Message-ID: CA68C479-9A21-4E45-A087-F1C678F30E20@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On Dec 2, 2026, at 14:21, Tristan Su <sooqing(at)gmail(dot)com> wrote:
>
> Hi,
>
> Thanks for the reviews. v2 removes the redundant NULL initialization
> of src (Chao Li) and moves the slot existence check before taking the
> slot spinlock, dropping the conditional copy (Hayato Kuroda).
>
> I kept SlotIsPhysical() for the plugin column: it tests the slot type
> directly, while an empty plugin is only a consequence of that type.
>
> No functional change. make check passes; pgindent is clean.
>
> Regards,
> Tristan Su
> <v2-0001-Reuse-slot-helpers-in-pg_get_replication_slots-an.patch>

Hi Tristan,

Please don’t start a new email thread for a revision of an existing patch. I saw that you’ve already replied to the original thread with v2, which is good enough. Let’s discard this new thread.

Best regards,
--
Chao Li (Evan)
HighGo Software Co., Ltd.
https://www.highgo.com/

In response to

Browse pgsql-hackers by date

  From Date Subject
Previous Message vignesh C 2026-12-02 06:45:52 Show the conflict log table in \dRs+ output