pgsql: Generate pg_basebackup temporary slot name using backend pid

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Generate pg_basebackup temporary slot name using backend pid
Date: 2017-05-31 19:01:45
Message-ID: E1dG8sL-0005rO-2A@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Generate pg_basebackup temporary slot name using backend pid

Using the client pid can easily be non-unique when used on different
hosts. Using the backend pid should be guaranteed unique, since the
temporary slot gets removed when the client disconnects so it will be
gone even if the pid is renewed.

Reported by Ludovic Vaugeois-Pepin

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2712da8b64b4e399a2666cce2c25329f4f834f2d

Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-06-01 17:33:17 pgsql: Always use -fPIC, not -fpic, when building shared libraries with
Previous Message Robert Haas 2017-05-31 18:26:42 pgsql: Restore accidentally-removed line.