Check storage-space type

The database server issues an error if the CREATE INDEX statement specifies the incorrect storage type. To determine the storage space (if any) that the CREATE INDEX statement specifies, the access method calls the mi_tab_spacetype() function.