Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit bdbfd34

Browse files
committed
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.
1 parent 3e2e58b commit bdbfd34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/pg_dump/pg_dump.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* by PostgreSQL
1313
*
1414
* IDENTIFICATION
15-
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.400 2005/01/11 17:55:25 tgl Exp $
15+
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.401 2005/01/23 00:30:26 tgl Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -6899,7 +6899,7 @@ dumpIndex(Archive *fout, IndxInfo *indxinfo)
68996899
ArchiveEntry(fout, indxinfo->dobj.catId, indxinfo->dobj.dumpId,
69006900
indxinfo->dobj.name,
69016901
tbinfo->dobj.namespace->dobj.name,
6902-
tbinfo->reltablespace,
6902+
indxinfo->tablespace,
69036903
tbinfo->usename, false,
69046904
"INDEX", q->data, delq->data, NULL,
69056905
indxinfo->dobj.dependencies, indxinfo->dobj.nDeps,

0 commit comments

Comments
 (0)