NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
C-136
CREATE INDEX Statement
volume volume-name. For volume-name, specify either a physical volume or
equivalent DEFINE.
You can specify a physical volume for each secondary partition in the PARTITION
clause.
This option is available only if you specify a virtual volume for index. volume-
name must belong to the virtual volume you specify.
INVALIDATE | NO INVALIDATE
specifies whether to invalidate programs that use the underlying table, as follows:
If you do not specify either INVALIDATE or NO INVALIDATE and the underlying
table has similarity checks enabled, SQL treats programs compiled with CHECK
INOPERABLE plans as if you specified NO INVALIDATE and treats other
programs as if you specified INVALIDATE.
In all other cases, the default is INVALIDATE.
KEYTAG key-specifier
specifies a two-byte key specifier unique among indexes for the table that is stored
in every row of the index.
If you omit the KEYTAG clause, SQL generates a keytag for the table. System-
generated keytags are sequential numbers, beginning with one. User-specified
keytag values can be either two bytes of character data or a SMALLINT
UNSIGNED value in the range 1 through 65535.
PARALLEL EXECUTION { ON [ CONFIG file ] | OFF }
specifies whether to load partitions of a partitioned index in parallel. (The
PARALLEL EXECUTION clause has no effect when you create an index on an
empty table.)
PARALLEL EXECUTION ON directs SQL to load index partitions in parallel.
PARALLEL EXECUTION OFF, the default, directs SQL to load index partitions
serially.
file is the name of an EDIT file (or an equivalent DEFINE) that contains
instructions for configuring the processes that load the index. See Parallel Index
Loading on page P-5 for more information about how to specify configuration
instructions in file.
If table and index are not partitioned, sorting by subsort process is usually faster
than the PARALLEL EXECUTION option. (Sorting by subsorts is not
recommended if the index is partitioned and parallel processing is used.) You
configure subsorts with class SUBSORT DEFINEs and the SUBSORT attribute of
INVALIDATE Invalidate all programs that use the underlying table and modify
the table's redefinition timestamp
NO INVALIDATE Do not invalidate programs or modify the table's redefinition
timestamp