Re: [PATCH] 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] Reuse slot helpers in pg_get_replication_slots and slot copy
Date: 2026-12-02 07:00:47
Message-ID: 52F47033-00FA-42F6-8B07-F3F2657E4E65@gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On Dec 2, 2026, at 12:47, 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>

V2 LGTM.

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Kirill Reshke 2026-12-02 07:09:25 DROP USER MAPPING doesn't acquire lock on its server
Previous Message Chao Li 2026-12-02 06:55:05 Re: [PATCH v2] Reuse slot helpers in pg_get_replication_slots and slot copy