aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2005-01-23 00:31:46 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2005-01-23 00:31:46 +0000
commitcb91f073a4a1b75770d8c6757a1a12265a2c6587 (patch)
treee906c1479f85a9f3303213f9824b7026c19e9170 /src
parenta9ad4b13bc81e327662c973efb6acccd2a3414b1 (diff)
downloadpostgresql-cb91f073a4a1b75770d8c6757a1a12265a2c6587.tar.gz
postgresql-cb91f073a4a1b75770d8c6757a1a12265a2c6587.zip
pg_dump dumped the wrong tablespace for an index (ie, the parent table's
tablespace instead of the index's own), except when the index was created as a constraint. Report and fix by Tanida Yutaka.
Diffstat (limited to 'src')
-rw-r--r--src/bin/pg_dump/pg_dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_dump/pg_dump.c b/src/bin/pg_dump/pg_dump.c
index 7a93ceb61b0..f5a392ab2bf 100644
--- a/src/bin/pg_dump/pg_dump.c
+++ b/src/bin/pg_dump/pg_dump.c
@@ -12,7 +12,7 @@
* by PostgreSQL
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.400 2005/01/11 17:55:25 tgl Exp $
+ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.400.4.1 2005/01/23 00:31:46 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -6899,7 +6899,7 @@ dumpIndex(Archive *fout, IndxInfo *indxinfo)
ArchiveEntry(fout, indxinfo->dobj.catId, indxinfo->dobj.dumpId,
indxinfo->dobj.name,
tbinfo->dobj.namespace->dobj.name,
- tbinfo->reltablespace,
+ indxinfo->tablespace,
tbinfo->usename, false,
"INDEX", q->data, delq->data, NULL,
indxinfo->dobj.dependencies, indxinfo->dobj.nDeps,