From fc02d2b245e82a385785bb4a0f49d8b617680779 Mon Sep 17 00:00:00 2001 From: Fujii Masao Date: Sun, 16 Jun 2013 05:12:39 +0900 Subject: [PATCH] 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 a720afb72c..cd7669b5eb 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; -- 2.40.0