aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFujii Masao <fujii@postgresql.org>2013-06-16 05:12:39 +0900
committerFujii Masao <fujii@postgresql.org>2013-06-16 05:12:39 +0900
commitfc02d2b245e82a385785bb4a0f49d8b617680779 (patch)
treea261a4ff054b9d20fc39919e57c77fe462f51c22 /src
parent61f3ada319038e7597c81f7f454982852bf02de3 (diff)
downloadpostgresql-fc02d2b245e82a385785bb4a0f49d8b617680779.tar.gz
postgresql-fc02d2b245e82a385785bb4a0f49d8b617680779.zip
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.
Diffstat (limited to 'src')
-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 a720afb72cc..cd7669b5eb2 100644
--- a/src/bin/pg_dump/pg_backup_archiver.c
+++ b/src/bin/pg_dump/pg_backup_archiver.c
@@ -885,6 +885,9 @@ PrintTOCSummary(Archive *AHX, RestoreOptions *ropt)
case archCustom:
fmtName = "CUSTOM";
break;
+ case archDirectory:
+ fmtName = "DIRECTORY";
+ break;
case archTar:
fmtName = "TAR";
break;