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

From: Tristan Su <sooqing(at)gmail(dot)com>
To: 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 04:47:36
Message-ID: CA+sbV4jZpoCB=H=EvXsRSQ0KnfPY2KVgQSBhV0rHh6EfGNB1dQ@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
v2-0001-Reuse-slot-helpers-in-pg_get_replication_slots-an.patch text/plain 3.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Dilip Kumar 2026-12-02 04:50:16 Re: Preserve conflict log table during upgrade
Previous Message shveta malik 2026-12-02 04:38:36 Re: ALTER DEFAULT PRIVILEGES IN SCHEMA pg_conflict silently has no effect