Skip site navigation (1) Skip section navigation (2)

Creating index on different tablespace and its temp files

From: Marcin Mirosław <marcin(at)mejor(dot)pl>
To: "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org>
Subject: Creating index on different tablespace and its temp files
Date: 2010-10-11 07:47:31
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-novice
I've got two additional tablespaces, let's call them tb_1 and tb_2.
Default tablespace for databse is tb_1, and all objects inside the one
are in tablespace tb_1.
I've start to create index with tablespace tb_2:
   ON tableX (flow_start ASC NULLS FIRST)
and i noticed that temporary files for new index are creating in tb_1
not tb_2. Let's imagine that tb_2 could be on diffrent hdd, creating
files in tb_2 should be faster because:
- there would bo no need to copy all index (after succesfull creating)
from tb_1 to tb_2
- reading data from disk is faster than reading and writting to the same hdd

I'm wondering what was the reasons to make "create index tablespace ..."
working in this way.
Thanks for reply.



pgsql-novice by date

Next:From: Krzysztof HoffmannDate: 2010-10-11 07:47:54
Subject: Re: UPGRADE TO V9
Previous:From: Solaimurugan V.Date: 2010-10-11 07:29:32
Subject: Range of IP address specification in pg_hba.conf

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group