Re: Symlinking (specific) tables to different Drives

From: Ow Mun Heng <Ow(dot)Mun(dot)Heng(at)wdc(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Symlinking (specific) tables to different Drives
Date: 2007-09-06 02:44:08
Message-ID: 1189046648.17792.33.camel@neuromancer.home.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, 2007-09-04 at 07:49 +0300, Mikko Partio wrote:

>
> No (changing tablespaces does not change your logical schema).

I just tested this "feature" with a temp table and it works as
advertised. (In progress of moving a table there now actually)

2nd question.. reading the docs, it says that moving a table doesn't
imply that the corresponding table's indexes are also moved to a that
same tablespace. eg: dbspace2

alter table foo set tablespace dbspace2;

how do I move the indexes to that space space?
I tried using pgadmin3 (1.4.3) but the option to move the index to
another tablespace is greyed out.

hmm.. forget the question.. seems like this works.. so I'm posting it to
be archived in the list.

alter table idx_foo_value set tablespace dbspace2

works.

This is missing in the docs (afaict)

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Liam Slusser 2007-09-06 02:45:25 Re: pg_dump doesn¹t dump everything?
Previous Message Josh Trutwin 2007-09-06 02:23:34 Re: Querying database for table pk - better way?