Re: [PATCHES] ALTER TABLE ... SET TABLESPACE

Поиск
Список
Период
Сортировка
От Gavin Sherry
Тема Re: [PATCHES] ALTER TABLE ... SET TABLESPACE
Дата
Msg-id Pine.LNX.4.58.0406210712030.12730@linuxworld.com.au
обсуждение исходный текст
Ответ на Re: [PATCHES] ALTER TABLE ... SET TABLESPACE  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Ответы Re: [PATCHES] ALTER TABLE ... SET TABLESPACE  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Re: [PATCHES] ALTER TABLE ... SET TABLESPACE  (Mark Kirkwood <markir@coretech.co.nz>)
Список pgsql-hackers
On Sun, 20 Jun 2004, Tatsuo Ishii wrote:

> > > Attached is a patch implementing this functionality.
> > >
> > > I've modified make_new_heap() as well as swap_relfilenodes() to not assume
> > > that tablespaces remain the same from old to new heap. I thought it better
> > > to go down this road than introduce a lot of duplicate code.
> >
> > I have tried your patches and it works great. Thanks.
> >
> > One thing I noticed was if I change tablespace for a table having
> > indexes, they are left in the old tablespace and the table itself was
> > moved to the new tablespace. I regard this is a good thing since I
> > could assign different table spaces for table and indexes.
> > It would be even better to assign different tablespaces for each
> > index.
>
> Hm. It seems there's a problem with tablespaces. What I did was:
>
> pgbench -i test
> alter table accounts set tablespace mydb2;
> \d accounts
>
> backend crashes by signal 11...

I seem to be clobbering memory some where but I cannot get assert or
valgrind to tell me. Anyone got any ideas?

Gavin


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

Предыдущее
От: "Dave Page"
Дата:
Сообщение: Re: Compile failure with SSL
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: [PATCHES] ALTER TABLE ... SET TABLESPACE