From the docs: "Indicates not to recurse creating indexes on partitions, if the table is partitioned. The default is to recurse.".
Am I understand correctly that index will not be created on existing partitons? What kind of index will be created then (on what)?
>Solution :
The objective is to build a partitioned index with as little locking as possible.
Normally, you’d use CREATE INDEX CONCURRENTLY to create an index on each partition, then CREATE INDEX on the partitioned table. If the index definitions match, the previously created indexes will become partitions of the partitioned index.
The problem with that is that all partitions will be locked at the same time. Instead, you can do it one partition at a time:
-
create the index
ONLYon the partitioned table (the index will be invalid) -
use
ALTER INDEX ... ATTACH PARTITIONto attach the indexes on the partitions as partitions of the index -
once all partitions are attached, the partitioned index will become valid