Move indexes
Move indexes
От:
Alexander Burbello <alexander@cresoltec.com.br>
Дата:
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.
Re: Move indexes
От:
"Hakan Kocaman" <Hakan.Kocaman@digame.de>
Дата:
Hi, in short terms: CREATE TABLESPACE http://www.postgresql.org/docs/8.1/interactive/sql-createtablespace.html CREATE TABLESPACE tablespace_name [ OWNER username ] LOCATION 'directory' ALTER INDEX http://www.postgresql.org/docs/8.1/interactive/sql-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 >
Re: Move indexes
От:
"Jaime Casanova" <systemguards@gmail.com>
Дата:
On 11/14/06, Hakan Kocaman wrote:
> Hi,
>
> in short terms:
>
> CREATE TABLESPACE
> http://www.postgresql.org/docs/8.1/interactive/sql-createtablespace.html
> CREATE TABLESPACE tablespace_name [ OWNER username ] LOCATION
> 'directory'
>
> ALTER INDEX
> http://www.postgresql.org/docs/8.1/interactive/sql-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