Add end-of-dump markers for pg_dump and pg_dumpall.

This commit is contained in:
Bruce Momjian 2004-05-19 21:21:26 +00:00
parent 8a91100379
commit bef228d1ee
2 changed files with 9 additions and 2 deletions

View File

@ -15,7 +15,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.86 2004/04/22 02:39:10 momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.87 2004/05/19 21:21:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -384,6 +384,8 @@ RestoreArchive(Archive *AHX, RestoreOptions *ropt)
AH->blobConnection = NULL;
}
}
ahprintf(AH, "--\n-- PostgreSQL database dump complete\n--\n\n");
}
/*

View File

@ -6,7 +6,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
*
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.33 2004/05/14 17:04:47 momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.34 2004/05/19 21:21:26 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -242,6 +242,11 @@ main(int argc, char *argv[])
}
PQfinish(conn);
printf("--\n");
printf("-- PostgreSQL database cluster dump complete\n");
printf("--\n\n");
exit(0);
}