Thread: 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.
Drop the index and recreate it in the new tablespace.
On 11/13/06, Alexander Burbello <burbello3000@yahoo.com.br> wrote:
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 7: You can help support the PostgreSQL project by donating at
http://www.postgresql.org/about/donate
On Mon, 2006-11-13 at 08:17 -0200, Alexander Burbello wrote: > 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. ALTER INDEX name SET TABLESPACE tablespace_name is the approved way and quicker than re-creating the indexes. -- Simon Riggs EnterpriseDB http://www.enterprisedb.com