summaryrefslogtreecommitdiff
path: root/src/bin/pg_dump/pg_backup_files.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2003-12-06 03:00:16 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2003-12-06 03:00:16 +0000
commit005a1217fbae15f3d84206a7b42b715c80f96a47 (patch)
treeddd12a29c6bb10746caee18c228eed8d9a70a1ec /src/bin/pg_dump/pg_backup_files.c
parenta5ffa8fea4125a21fced438ab1598d5fbec1423d (diff)
Massive overhaul of pg_dump: make use of dependency information from
pg_depend to determine a safe dump order. Defaults and check constraints can be emitted either as part of a table or domain definition, or separately if that's needed to break a dependency loop. Lots of old half-baked code for controlling dump order removed.
Diffstat (limited to 'src/bin/pg_dump/pg_backup_files.c')
-rw-r--r--src/bin/pg_dump/pg_backup_files.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bin/pg_dump/pg_backup_files.c b/src/bin/pg_dump/pg_backup_files.c
index c79ca05443e..9d34b5d4dbf 100644
--- a/src/bin/pg_dump/pg_backup_files.c
+++ b/src/bin/pg_dump/pg_backup_files.c
@@ -20,7 +20,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_files.c,v 1.23 2003/11/29 19:52:05 pgsql Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_files.c,v 1.24 2003/12/06 03:00:11 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -172,11 +172,11 @@ _ArchiveEntry(ArchiveHandle *AH, TocEntry *te)
{
#ifdef HAVE_LIBZ
if (AH->compression == 0)
- sprintf(fn, "%d.dat", te->id);
+ sprintf(fn, "%d.dat", te->dumpId);
else
- sprintf(fn, "%d.dat.gz", te->id);
+ sprintf(fn, "%d.dat.gz", te->dumpId);
#else
- sprintf(fn, "%d.dat", te->id);
+ sprintf(fn, "%d.dat", te->dumpId);
#endif
ctx->filename = strdup(fn);
}