Informix Error -26914: The index was not created, because its storage differs from that of its rolling window table.
Cause and resolution
The index was not created, because its storage differs from that of its rolling window table.
Rolling window tables require a RANGE INTERVAL fragmentation strategy. The database server automatically applies the same storage strategy to each index that is subsequently defined on the table, but it returns this error if any storage option is specified for the index, or if the ALTER FRAGMENT statement references an index on a rolling window table.
To create an index on a rolling window table, use the CREATE INDEX statement with no storage option.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-26914 fires when an index on a rolling window table specifies its own storage option,
or when ALTER FRAGMENT references such an index — per the official guidance.
- A storage option was specified for an index on a rolling window table, per the
official guidance — the direct, only cause; the server automatically applies the
table's own
RANGE INTERVALstorage strategy to every index.
Solutions / Resolution
- Use
CREATE INDEXwith no storage option on a rolling window table, per the official guidance.
Examples
An index with an explicit storage option
CREATE INDEX idx1 ON rolling_tab (id) IN dbsp1;
-- -26914: storage option not allowed on a rolling window table's index
Corrected
CREATE INDEX idx1 ON rolling_tab (id);
Diagnostic Checks
- Check
CREATE INDEXstatements on rolling window tables for storage options, and remove them.
Related Errors / Related Topics
- -26911 — "The statement failed because each constraint on a rolling window table requires a supporting index." A related rolling-window-table index restriction, on requiring a matching-fragmentation index for constraints rather than the index's storage option specifically.
An index on a rolling window table specified its own storage option — omit it; the server applies the table's own strategy automatically.