On Thu, Apr 17, 2014 at 11:41 AM, Fabrízio de Royes Mello <fabriziome...@gmail.com> wrote: > Hi all, > > There are some reason to verbose output of pg_dump don't show schema name? > > A output example of using "pg_dump -Fd -j8 -v" Specifying a target directory with "-f" is better here...
> This database have a lot of different schemas with same structure and if I > need do view the status of dump I don't know what schema the table are dump > from. Yes this may be helpful. The attached quick'n dirty patch implements it. -- Michael
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c index a6c0428..65c3cd4 100644 --- a/src/bin/pg_dump/pg_dump.c +++ b/src/bin/pg_dump/pg_dump.c @@ -1400,7 +1400,17 @@ dumpTableData_copy(Archive *fout, void *dcontext) const char *column_list; if (g_verbose) - write_msg(NULL, "dumping contents of table %s\n", classname); + { + /* Print namespace information if available */ + if (tbinfo->dobj.namespace != NULL && + tbinfo->dobj.namespace->dobj.name != NULL) + write_msg(NULL, "dumping contents of table %s.%s\n", + tbinfo->dobj.namespace->dobj.name, + classname); + else + write_msg(NULL, "dumping contents of table %s\n", + classname); + } /* * Make sure we are in proper schema. We will qualify the table name
-- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers