8.0 doesn't dump index tablespace correctly.

Поиск
Список
Период
Сортировка
От TANIDA Yutaka
Тема 8.0 doesn't dump index tablespace correctly.
Дата
Msg-id 20050120143538.9C72.TANIDA@sra.co.jp
обсуждение исходный текст
Ответы Re: 8.0 doesn't dump index tablespace correctly.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Hi,

pg_dump on 8.0 can't dump index's tablespace information if both table
and its index 's tablespaces are different. For example:

create table a(i int) tablespace ts1;
create index a_idx on a (i) tablespace ts2;
create index a_idx2 on a (i) tablespace pg_default;

Assuming tablespace ts1 ans ts2 were defined.

If dump and restore them , tablespace of a_idx and a_idx2 was ts1 ,
which is a's tablespace ,not index's one .

Here's a patch .

*** pg_dump.c.orig      2005-01-20 15:14:28.000000000 +0900
--- pg_dump.c   2005-01-20 15:14:53.000000000 +0900
***************
*** 6899,6905 ****
                ArchiveEntry(fout, indxinfo->dobj.catId, indxinfo->dobj.dumpId,
                                         indxinfo->dobj.name,
                                         tbinfo->dobj.namespace->dobj.name,
!                                        tbinfo->reltablespace,
                                         tbinfo->usename, false,
                                         "INDEX", q->data, delq->data, NULL,
                                         indxinfo->dobj.dependencies, indxinfo->dobj.nDeps,
--- 6899,6905 ----
                ArchiveEntry(fout, indxinfo->dobj.catId, indxinfo->dobj.dumpId,
                                         indxinfo->dobj.name,
                                         tbinfo->dobj.namespace->dobj.name,
!                                        indxinfo->tablespace,
                                         tbinfo->usename, false,
                                         "INDEX", q->data, delq->data, NULL,
                                         indxinfo->dobj.dependencies, indxinfo->dobj.nDeps,


--
TANIDA Yutaka <tanida@sra.co.jp>

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: 8.0.0 pg_restore -L doesn't restore ACLs
Следующее
От: "Simon Nicholls"
Дата:
Сообщение: BUG #1411: Ref Bug#1410 Hibernate PerformanceTest is incredibly slow