Re: Introduce XID age and inactive timeout based replication slot invalidation - Mailing list pgsql-hackers

From vignesh C
Subject Re: Introduce XID age and inactive timeout based replication slot invalidation
Date
Msg-id CALDaNm3d3MFEgZFLHTUcYiTHH2U0NgYGjs0fgSMmCVftr+aosQ@mail.gmail.com
Whole thread Raw
In response to Re: Introduce XID age and inactive timeout based replication slot invalidation  (Peter Smith <smithpb2250@gmail.com>)
List pgsql-hackers
On Mon, 10 Feb 2025 at 17:33, Nisha Moond <nisha.moond412@gmail.com> wrote:
>
> Here are the v73 patches incorporating the comments above and the
> subsequent comments from [1].
>  - patch 002 is rebased on 001 with no new changes.

Few comments:
1) For some reason SlotInvalidationCauses was with PGDLLIMPORT, this
is removed now. This is required if it needs to be accessible by
loaded modules. Is there any impact or is it ok?
-extern PGDLLIMPORT const char *const SlotInvalidationCauses[];
+typedef struct SlotInvalidationCauseMap
+{
+       int                     cause;
+       const char *cause_name;
+}                      SlotInvalidationCauseMap;

2) The new structure should be added to typedefs.list:
+typedef struct SlotInvalidationCauseMap
+{
+       int                     cause;
+       const char *cause_name;
+}                      SlotInvalidationCauseMap;

3) After adding you can run pgindent on slot.h to indent the following code:
+typedef struct SlotInvalidationCauseMap
+{
+       int                     cause;
+       const char *cause_name;
+}                      SlotInvalidationCauseMap;

Regards,
Vignesh



pgsql-hackers by date:

Previous
From: Dilip Kumar
Date:
Subject: Re: Conflict detection for update_deleted in logical replication
Next
From: Andres Freund
Date:
Subject: Re: RFC: Allow EXPLAIN to Output Page Fault Information