Fix pg_restore -l with the directory archive to display the correct format name.
authorFujii Masao
Sat, 15 Jun 2013 20:07:02 +0000 (05:07 +0900)
committerFujii Masao
Sat, 15 Jun 2013 20:07:02 +0000 (05:07 +0900)
Back-patch to 9.1 where the directory archive was introduced.

src/bin/pg_dump/pg_backup_archiver.c

index a720afb72cc87a59543414572853f779dba6f07a..cd7669b5eb2cae5743da4341faaef6274ab7eb4b 100644 (file)
@@ -885,6 +885,9 @@ PrintTOCSummary(Archive *AHX, RestoreOptions *ropt)
        case archCustom:
            fmtName = "CUSTOM";
            break;
+       case archDirectory:
+           fmtName = "DIRECTORY";
+           break;
        case archTar:
            fmtName = "TAR";
            break;