Index: doc/src/sgml/ref/pg_dump.sgml
===================================================================
RCS file: /cvsroot/pgsql-server/doc/src/sgml/ref/pg_dump.sgml,v
retrieving revision 1.70
diff -c -c -r1.70 pg_dump.sgml
*** doc/src/sgml/ref/pg_dump.sgml 31 May 2004 13:37:52 -0000 1.70
--- doc/src/sgml/ref/pg_dump.sgml 4 Jun 2004 04:58:18 -0000
***************
*** 403,409 ****
Specifies verbose mode. This will cause
pg_dump to output detailed object
! comments in the dump file, and progress messages to standard error.
--- 403,410 ----
Specifies verbose mode. This will cause
pg_dump to output detailed object
! comments in the dump file, start and stop times, and progress
! messages to standard error.
Index: doc/src/sgml/ref/pg_dumpall.sgml
===================================================================
RCS file: /cvsroot/pgsql-server/doc/src/sgml/ref/pg_dumpall.sgml,v
retrieving revision 1.43
diff -c -c -r1.43 pg_dumpall.sgml
*** doc/src/sgml/ref/pg_dumpall.sgml 29 Nov 2003 19:51:39 -0000 1.43
--- doc/src/sgml/ref/pg_dumpall.sgml 4 Jun 2004 04:58:18 -0000
***************
*** 192,199 ****
Specifies verbose mode. This will cause
! pg_dumpall to print progress
! messages to standard error.
--- 192,200 ----
Specifies verbose mode. This will cause
! pg_dumpall to output start and stop
! times in the dump file, and progress messages to standard error.
! It will also enable verbose output in pg_dump>.
Index: src/bin/pg_dump/pg_backup_archiver.c
===================================================================
RCS file: /cvsroot/pgsql-server/src/bin/pg_dump/pg_backup_archiver.c,v
retrieving revision 1.87
diff -c -c -r1.87 pg_backup_archiver.c
*** src/bin/pg_dump/pg_backup_archiver.c 19 May 2004 21:21:26 -0000 1.87
--- src/bin/pg_dump/pg_backup_archiver.c 4 Jun 2004 04:58:21 -0000
***************
*** 28,33 ****
--- 28,34 ----
#include
#include
+ #include
#include
#include "pqexpbuffer.h"
***************
*** 202,208 ****
if (ropt->filename || ropt->compression)
sav = SetOutput(AH, ropt->filename, ropt->compression);
! ahprintf(AH, "--\n-- PostgreSQL database dump\n--\n\n");
/*
* Establish important parameter values right away.
--- 203,218 ----
if (ropt->filename || ropt->compression)
sav = SetOutput(AH, ropt->filename, ropt->compression);
! ahprintf(AH, "--\n-- PostgreSQL database dump\n");
! if (AH->public.verbose)
! {
! char buf[256];
! time_t now = time(NULL);
!
! if (strftime(buf, 256, "%Y-%m-%d %H:%M:%S %Z", localtime(&now)) != 0)
! ahprintf(AH, "-- Started on %s\n", buf);
! }
! ahprintf(AH, "--\n\n");
/*
* Establish important parameter values right away.
***************
*** 385,391 ****
}
}
! ahprintf(AH, "--\n-- PostgreSQL database dump complete\n--\n\n");
}
/*
--- 395,410 ----
}
}
! ahprintf(AH, "--\n-- PostgreSQL database dump complete\n");
! if (AH->public.verbose)
! {
! char buf[256];
! time_t now = time(NULL);
!
! if (strftime(buf, 256, "%Y-%m-%d %H:%M:%S %Z", localtime(&now)) != 0)
! ahprintf(AH, "-- Completed on %s\n", buf);
! }
! ahprintf(AH, "--\n\n");
}
/*
Index: src/bin/pg_dump/pg_dumpall.c
===================================================================
RCS file: /cvsroot/pgsql-server/src/bin/pg_dump/pg_dumpall.c,v
retrieving revision 1.36
diff -c -c -r1.36 pg_dumpall.c
*** src/bin/pg_dump/pg_dumpall.c 3 Jun 2004 00:07:36 -0000 1.36
--- src/bin/pg_dump/pg_dumpall.c 4 Jun 2004 04:58:22 -0000
***************
*** 21,26 ****
--- 21,27 ----
#include "strdup.h"
#endif
#include
+ #include
#include "getopt_long.h"
***************
*** 219,226 ****
conn = connectDatabase("template1", pghost, pgport, pguser, force_password);
! printf("--\n");
! printf("-- PostgreSQL database cluster dump\n");
printf("--\n\n");
printf("\\connect \"template1\"\n\n");
--- 220,234 ----
conn = connectDatabase("template1", pghost, pgport, pguser, force_password);
! printf("--\n-- PostgreSQL database cluster dump\n");
! if (verbose)
! {
! char buf[256];
! time_t now = time(NULL);
!
! if (strftime(buf, 256, "%Y-%m-%d %H:%M:%S %Z", localtime(&now)) != 0)
! printf("-- Started on %s\n", buf);
! }
printf("--\n\n");
printf("\\connect \"template1\"\n\n");
***************
*** 239,246 ****
PQfinish(conn);
! printf("--\n");
! printf("-- PostgreSQL database cluster dump complete\n");
printf("--\n\n");
exit(0);
--- 247,261 ----
PQfinish(conn);
! printf("--\n-- PostgreSQL database cluster dump complete\n");
! if (verbose)
! {
! char buf[256];
! time_t now = time(NULL);
!
! if (strftime(buf, 256, "%Y-%m-%d %H:%M:%S %Z", localtime(&now)) != 0)
! printf("-- Completed on %s\n", buf);
! }
printf("--\n\n");
exit(0);