Commit 28cdf5f7 authored by Bruce Momjian's avatar Bruce Momjian

Have pg_dump (-v) verbose mode output the pg_dump and server versions in

text output mode, like we do in custom output mode.

Jim Cox
parent edf344a5
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.179 2010/02/18 01:29:10 tgl Exp $ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.180 2010/02/23 21:48:32 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -302,6 +302,15 @@ RestoreArchive(Archive *AHX, RestoreOptions *ropt) ...@@ -302,6 +302,15 @@ RestoreArchive(Archive *AHX, RestoreOptions *ropt)
ahprintf(AH, "--\n-- PostgreSQL database dump\n--\n\n"); ahprintf(AH, "--\n-- PostgreSQL database dump\n--\n\n");
if (AH->public.verbose)
{
ahprintf(AH, "--\n-- pg_dump version: %s\n", PG_VERSION);
ahprintf(AH, "--\n-- remote database version: %s (%d)\n"
,AHX->remoteVersionStr
,AHX->remoteVersion) ;
ahprintf(AH, "--\n\n");
}
if (AH->public.verbose) if (AH->public.verbose)
dumpTimestamp(AH, "Started on", AH->createDate); dumpTimestamp(AH, "Started on", AH->createDate);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment