Re: pgsql: Prevent invalidation of newly synced replication slots. - Mailing list pgsql-hackers

From Andrey Borodin
Subject Re: pgsql: Prevent invalidation of newly synced replication slots.
Date
Msg-id 1DF1F535-4027-4F33-98B5-7577D11053C9@yandex-team.ru
Whole thread Raw
In response to Re: pgsql: Prevent invalidation of newly synced replication slots.  (Amit Kapila <amit.kapila16@gmail.com>)
List pgsql-hackers

> On 28 Jan 2026, at 10:47, Amit Kapila <amit.kapila16@gmail.com> wrote:
>
> Do let me know if you could think of gathering any other information
> which can be of help here.

Interestingly, increasing timeout in pgrename() to 500 seconds fixes "Windows - Server 2022, VS 2019 - Meson & ninja ",
butdoes not fix "Windows - Server 2022, VS 2019 - Meson & ninja". 

diff --git a/src/port/dirmod.c b/src/port/dirmod.c
index 467b50d6f09..da38e37aa45 100644
--- a/src/port/dirmod.c
+++ b/src/port/dirmod.c
@@ -88,7 +88,7 @@ pgrename(const char *from, const char *to)
                        return -1;
 #endif
-               if (++loops > 100)              /* time out after 10 sec */
+               if (++loops > 5000)             /* time out after 10 sec */
                        return -1;
                pg_usleep(100000);              /* us */
        }


Best regards, Andrey Borodin.


pgsql-hackers by date:

Previous
From: Aditya Kamath
Date:
Subject: RE: AIX support
Next
From: Amit Kapila
Date:
Subject: Re: pgsql: Prevent invalidation of newly synced replication slots.