postgres.git / summary / log / commit / refs
commit 81bb2d23bdf8d0b102c5fb0abd0a5df6fd74aba9
Author: Fujii Masao <fujii@postgresql.org>
Date: Sat Jun 15 20:15:44 2013 +0000
First released in: 9.4.0, 9.1.10, 9.2.5, 9.3.0
Fix pg_restore -l with the directory archive to display the correct format name.
Back-patch to 9.1 where the directory archive was introduced.
src/bin/pg_dump/pg_backup_archiver.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/bin/pg_dump/pg_backup_archiver.c b/src/bin/pg_dump/pg_backup_archiver.c
index 7b1bf946302..7764f3d2a31 100644
--- a/src/bin/pg_dump/pg_backup_archiver.c
+++ b/src/bin/pg_dump/pg_backup_archiver.c
@@ -834,6 +834,9 @@ PrintTOCSummary(Archive *AHX, RestoreOptions *ropt)
case archCustom:
fmtName = "CUSTOM";
break;
+ case archDirectory:
+ fmtName = "DIRECTORY";
+ break;
case archTar:
fmtName = "TAR";
break;
[parent: cf0f08e03b51]