add_pgdump_and_db_versions_v1.patch
text/x-patch
Filename: add_pgdump_and_db_versions_v1.patch
Type: text/x-patch
Part: 0
Patch
Same data as JSON:
GET /api/v1/attachments/:id/patch
the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes.
API reference →
Format: context
Series: patch v1
| File | + | − |
|---|---|---|
| src/bin/pg_dump/pg_backup_archiver.c | 9 | 0 |
Index: src/bin/pg_dump/pg_backup_archiver.c
===================================================================
RCS file: /projects/cvsroot/pgsql/src/bin/pg_dump/pg_backup_archiver.c,v
retrieving revision 1.175
diff -c -r1.175 pg_backup_archiver.c
*** src/bin/pg_dump/pg_backup_archiver.c 7 Aug 2009 22:48:34 -0000 1.175
--- src/bin/pg_dump/pg_backup_archiver.c 27 Sep 2009 11:26:37 -0000
***************
*** 301,306 ****
--- 301,315 ----
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)
dumpTimestamp(AH, "Started on", AH->createDate);
if (ropt->single_txn)