From: Andres Freund Date: Wed, 29 Jan 2014 15:29:29 +0000 (+0100) Subject: ? Don't copy pg_replslot in basebackups. X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=29cbc69d9c2775f7693934df5ea76d8db1160f52;p=users%2Frhaas%2Fpostgres.git ? Don't copy pg_replslot in basebackups. --- diff --git a/src/backend/replication/basebackup.c b/src/backend/replication/basebackup.c index 7d0ed9ce4c..781f678097 100644 --- a/src/backend/replication/basebackup.c +++ b/src/backend/replication/basebackup.c @@ -847,6 +847,10 @@ sendDir(char *path, int basepathlen, bool sizeonly, List *tablespaces) if (strcmp(de->d_name, BACKUP_LABEL_FILE) == 0) continue; + /* Skip pg_replslot, not useful to copy */ + if (strcmp(de->d_name, "pg_replslot") == 0) + continue; + /* * Check if the postmaster has signaled us to exit, and abort with an * error in that case. The error handler further up will call