]> 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:15:44 +0000 (05:15 +0900)
committerFujii Masao <fujii@postgresql.org>
Sat, 15 Jun 2013 20:15:44 +0000 (05:15 +0900)
Back-patch to 9.1 where the directory archive was introduced.

src/bin/pg_dump/pg_backup_archiver.c

index 7b1bf94630266717d299cbd1ab70bc37c7d77040..7764f3d2a31c7e4fe3e5bd74eda17fdf93e83dde 100644 (file)
@@ -834,6 +834,9 @@ PrintTOCSummary(Archive *AHX, RestoreOptions *ropt)
                case archCustom:
                        fmtName = "CUSTOM";
                        break;
+               case archDirectory:
+                       fmtName = "DIRECTORY";
+                       break;
                case archTar:
                        fmtName = "TAR";
                        break;