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

src/bin/pg_dump/pg_backup_archiver.c

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