Re: pg_basebackup: Always return valid temporary slot names - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: pg_basebackup: Always return valid temporary slot names
Date
Msg-id ZPlRfhWvl/2kH180@paquier.xyz
Whole thread Raw
In response to Re: pg_basebackup: Always return valid temporary slot names  (Michael Paquier <michael@paquier.xyz>)
List pgsql-hackers
On Thu, Sep 07, 2023 at 01:23:33PM +0900, Michael Paquier wrote:
> PQbackendPID() returns a signed value, likely coming from the fact
> that it was thought to be OK back in the days where PIDs were always
> defined with less bits.  The fix is OK taken in isolation, so I am
> going to apply it in a few minutes as I'm just passing by..

Actually, correcting myself, pid_max cannot be higher than 2^22 on 64b
machines even these days (per man 5 proc).
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: pg_basebackup: Always return valid temporary slot names
Next
From: Michael Paquier
Date:
Subject: Re: Unlogged relation copy is not fsync'd