Include schema name in pg_restore -l output, per request from Phil Endecott.

This commit is contained in:
Tom Lane 2004-10-08 15:03:26 +00:00
parent 9bf6effd8e
commit 07ccbeb360
2 changed files with 12 additions and 5 deletions

View file

@ -1,5 +1,5 @@
<!--
$PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.300 2004/10/04 22:49:47 tgl Exp $
$PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.301 2004/10/08 15:03:25 tgl Exp $
-->
<appendix id="release">
@ -1723,7 +1723,13 @@ $PostgreSQL: pgsql/doc/src/sgml/release.sgml,v 1.300 2004/10/04 22:49:47 tgl Exp
<listitem>
<para>
New start/stop of dump markers in pg_dump (Bruce)
pg_restore -l display now includes objects' schema names
</para>
</listitem>
<listitem>
<para>
New begin/end markers in pg_dump text output (Bruce)
</para>
</listitem>

View file

@ -15,7 +15,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.97 2004/09/10 20:05:18 tgl Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.98 2004/10/08 15:03:26 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -699,9 +699,10 @@ PrintTOCSummary(Archive *AHX, RestoreOptions *ropt)
while (te != AH->toc)
{
if (_tocEntryRequired(te, ropt, false) != 0)
ahprintf(AH, "%d; %u %u %s %s %s\n", te->dumpId,
ahprintf(AH, "%d; %u %u %s %s %s %s\n", te->dumpId,
te->catalogId.tableoid, te->catalogId.oid,
te->desc, te->tag, te->owner);
te->desc, te->namespace ? te->namespace : "-",
te->tag, te->owner);
te = te->next;
}