]> granicus.if.org Git - postgresql/commitdiff
pg_dump dumped the wrong tablespace for an index (ie, the parent table's
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 23 Jan 2005 00:30:26 +0000 (00:30 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 23 Jan 2005 00:30:26 +0000 (00:30 +0000)
tablespace instead of the index's own), except when the index was created
as a constraint.  Report and fix by Tanida Yutaka.

src/bin/pg_dump/pg_dump.c

index 7a93ceb61b04a775273940cb10b0111b86fd4646..5d1859bd2139a41e47d7afc681d5aaca3c0d6b73 100644 (file)
@@ -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.401 2005/01/23 00:30:26 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,