Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bef228d

Browse files
committed
Add end-of-dump markers for pg_dump and pg_dumpall.
1 parent 8a91100 commit bef228d

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/bin/pg_dump/pg_backup_archiver.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
*
1717
* IDENTIFICATION
18-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.86 2004/04/22 02:39:10 momjian Exp $
18+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.87 2004/05/19 21:21:26 momjian Exp $
1919
*
2020
*-------------------------------------------------------------------------
2121
*/
@@ -384,6 +384,8 @@ RestoreArchive(Archive *AHX, RestoreOptions *ropt)
384384
AH->blobConnection = NULL;
385385
}
386386
}
387+
388+
ahprintf(AH, "--\n-- PostgreSQL database dump complete\n--\n\n");
387389
}
388390

389391
/*

src/bin/pg_dump/pg_dumpall.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Portions Copyright (c) 1994, Regents of the University of California
77
*
88
*
9-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.33 2004/05/14 17:04:47 momjian Exp $
9+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dumpall.c,v 1.34 2004/05/19 21:21:26 momjian Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -242,6 +242,11 @@ main(int argc, char *argv[])
242242
}
243243

244244
PQfinish(conn);
245+
246+
printf("--\n");
247+
printf("-- PostgreSQL database cluster dump complete\n");
248+
printf("--\n\n");
249+
245250
exit(0);
246251
}
247252

0 commit comments

Comments
 (0)