Home > Archive > PostgreSQL Administration > November 2006 > Move indexes









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Move indexes
Alexander Burbello

2006-11-14, 12:14 am

Hi,

I have one tablespace with all my objects.
I would like to separate indexes from other.

How can I select and move with SQL???

Thank you for your help.

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql
.org so that your
message can get through to the mailing list cleanly

Hakan Kocaman

2006-11-14, 5:31 am

Hi,

in short terms:

CREATE TABLESPACE
http://www.postgresql.org/docs/8.1/...tablespace.html
CREATE TABLESPACE tablespace_name [ OWNER username ] LOCATION
'directory'

ALTER INDEX
http://www.postgresql.org/docs/8.1/...alterindex.html
ALTER INDEX name SET TABLESPACE tablespace_name

Haven't tried this for my own, so take care (and test).

Best regards

Hakan



> -----Original Message-----
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org] On Behalf Of
> Alexander Burbello
> Sent: Friday, November 10, 2006 8:03 PM
> To: Lista Postgres
> Subject: [ADMIN] Move indexes
>
>
> Hi,
>
> I have one tablespace with all my objects.
> I would like to separate indexes from other.
>
> How can I select and move with SQL???
>
> Thank you for your help.
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql
.org
> so that your
> message can get through to the mailing list cleanly
>


---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Jaime Casanova

2006-11-14, 7:19 pm

On 11/14/06, Hakan Kocaman <Hakan.Kocaman@digame.de> wrote:
> Hi,
>
> in short terms:
>
> CREATE TABLESPACE
> http://www.postgresql.org/docs/8.1/...tablespace.html
> CREATE TABLESPACE tablespace_name [ OWNER username ] LOCATION
> 'directory'
>
> ALTER INDEX
> http://www.postgresql.org/docs/8.1/...alterindex.html
> ALTER INDEX name SET TABLESPACE tablespace_name
>
> Haven't tried this for my own, so take care (and test).
>


i think we should add: "in >= 8.1"

--
regards,
Jaime Casanova

"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs and the universe trying
to produce bigger and better idiots.
So far, the universe is winning."
Richard Cook

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql
.org so that your
message can get through to the mailing list cleanly

Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com