Re: Time to move table to new tablespace - Mailing list pgsql-general

From Ondrej Ivanič
Subject Re: Time to move table to new tablespace
Date
Msg-id CAM6mieLUk36VDCTcWgfsKcBJmZfY9PZ5QGKz=NN78cqvjQ00Gw@mail.gmail.com
Whole thread Raw
In response to Time to move table to new tablespace  (Jason Buberel <jason@altosresearch.com>)
List pgsql-general
Hi,

On 8 January 2012 01:52, Jason Buberel <jason@altosresearch.com> wrote:
> psql> create tablespace 'newstorage' location '/some/new/path';
> psql> alter table city_summary set tablespace = 'newstorage';

Be aware that you are not going to move indexes (see ALTER INDEX name
SET TABLESPACE tablespace_name). Maybe you don't have to move data and
I would be worth to move indexes only. So you ended up with data and
index tablespace and reduce random_page_cost when you query your
table.

--
Ondrej Ivanic
(ondrej.ivanic@gmail.com)

pgsql-general by date:

Previous
From: Jon Nelson
Date:
Subject: Re: Duplicated entries are not ignored even if a "do instead nothing" rule is added.
Next
From: Chris Angelico
Date:
Subject: Lock/deadlock issues with priority queue in Postgres - possible VACUUM conflicts