Thread: create index does change pages?

create index does change pages?

From
mohsen soodkhah mohammadi
Date:
hello.
dose one create index on the large table changes the place of some tuples in some pages?

Re: create index does change pages?

From
Heikki Linnakangas
Date:
On 20.07.2013 12:56, mohsen soodkhah mohammadi wrote:
> hello.
> dose one create index on the large table changes the place of some tuples
> in some pages?

No, creating an index doesn't move any tuples in the heap.

- Heikki



Re: create index does change pages?

From
Atri Sharma
Date:

Sent from my iPad

On 20-Jul-2013, at 15:26, mohsen soodkhah mohammadi <mohsensoodkhah@gmail.com> wrote:

> hello.
> dose one create index on the large table changes the place of some tuples in some pages?


No, making an index involves keeping some metadata about your tables in an auxiliary data structure. It will require
someextra memory for the auxiliary data structure, but there is no moving of the actual tuples. 

Regards,

Atri