? Don't copy pg_replslot in basebackups.
authorAndres Freund <andres@anarazel.de>
Wed, 29 Jan 2014 15:29:29 +0000 (16:29 +0100)
committerAndres Freund <andres@anarazel.de>
Wed, 29 Jan 2014 15:29:29 +0000 (16:29 +0100)
src/backend/replication/basebackup.c

index 7d0ed9ce4c84fc92f3d7b7b424a1764212d46471..781f678097d4c6dc5d000703f30fe7bbffe2a43f 100644 (file)
@@ -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