We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec2aa7f commit 94a8a24Copy full SHA for 94a8a24
src/backup.c
@@ -634,6 +634,14 @@ do_backup_instance(void)
634
dir_list_file(backup_files_list, instance_config.pgdata,
635
true, true, false);
636
637
+ /* Sanity check for backup_files_list, thank you, Windows:
638
+ * https://github.com/postgrespro/pg_probackup/issues/48
639
+ */
640
+
641
+ if (parray_num(backup_files_list) == 0)
642
+ elog(ERROR, "PGDATA is empty. Either it was concrurrently deleted or "
643
+ "pg_probackup do not possess sufficient permissions to list PGDATA content");
644
645
/*
646
* Sort pathname ascending. It is necessary to create intermediate
647
* directories sequentially.
0 commit comments