summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFujii Masao2013-06-15 20:13:58 +0000
committerFujii Masao2013-06-15 20:13:58 +0000
commit25f5487aba82601deb650870f5a67b5d1c4ee141 (patch)
tree26cd559cdf147b1f9d5e2b31643d301ebeb40aca
parentcbabf50dccc29aed456a56ae8909d4d593c3ab38 (diff)
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.
-rw-r--r--src/bin/pg_dump/pg_backup_archiver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/pg_dump/pg_backup_archiver.c b/src/bin/pg_dump/pg_backup_archiver.c
index c176b656dbf..3e58957ba4c 100644
--- a/src/bin/pg_dump/pg_backup_archiver.c
+++ b/src/bin/pg_dump/pg_backup_archiver.c
@@ -927,6 +927,9 @@ PrintTOCSummary(Archive *AHX, RestoreOptions *ropt)
case archCustom:
fmtName = "CUSTOM";
break;
+ case archDirectory:
+ fmtName = "DIRECTORY";
+ break;
case archTar:
fmtName = "TAR";
break;