Restrict copying of invalidated replication slots

From: Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>
To: PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Restrict copying of invalidated replication slots
Date: 2025-02-04 09:56:44
Message-ID: CANhcyEU65aH0VYnLiu=OhNNxhnhNhwcXBeT-jvRe1OiJTo_Ayg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Currently, we can copy an invalidated slot using the function
'pg_copy_logical_replication_slot'. As per the suggestion in the
thread [1], we should prohibit copying of such slots.

I have created a patch to address the issue.

[1]: https://www.postgresql.org/message-id/CAA4eK1Kw%3DvZ2FZ4DdrmOhuxOAL%3D2abaBm8hu_PsVN2Hd6UFP-w%40mail.gmail.com

Thanks and Regards,
Shlok Kyal

Attachment Content-Type Size
v1-0001-Restrict-copying-of-invalidated-replication-slots.patch application/octet-stream 2.8 KB

Browse pgsql-hackers by date

  From Date Subject
Next Message Shlok Kyal 2025-02-04 09:58:05 Re: Introduce XID age and inactive timeout based replication slot invalidation
Previous Message Shayon Mukherjee 2025-02-04 09:44:43 Re: Proposal to Enable/Disable Index using ALTER INDEX (with patch)