]> granicus.if.org Git - postgresql/commitdiff
Fix pg_restore -l with the directory archive to display the correct format name.
authorFujii Masao <fujii@postgresql.org>
Sat, 15 Jun 2013 20:12:39 +0000 (05:12 +0900)
committerFujii Masao <fujii@postgresql.org>
Sat, 15 Jun 2013 20:12:39 +0000 (05:12 +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;