mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-02 06:01:17 +02:00
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.
This commit is contained in:
parent
3e2e58ba37
commit
bdbfd343a2
@ -12,7 +12,7 @@
|
|||||||
* by PostgreSQL
|
* by PostgreSQL
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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,
|
ArchiveEntry(fout, indxinfo->dobj.catId, indxinfo->dobj.dumpId,
|
||||||
indxinfo->dobj.name,
|
indxinfo->dobj.name,
|
||||||
tbinfo->dobj.namespace->dobj.name,
|
tbinfo->dobj.namespace->dobj.name,
|
||||||
tbinfo->reltablespace,
|
indxinfo->tablespace,
|
||||||
tbinfo->usename, false,
|
tbinfo->usename, false,
|
||||||
"INDEX", q->data, delq->data, NULL,
|
"INDEX", q->data, delq->data, NULL,
|
||||||
indxinfo->dobj.dependencies, indxinfo->dobj.nDeps,
|
indxinfo->dobj.dependencies, indxinfo->dobj.nDeps,
|
||||||
|
Loading…
Reference in New Issue
Block a user