Informix Error -25802: The PARTITION clause is mandatory for interval and list fragmentation.
Cause and resolution
The PARTITION clause is mandatory for interval and list fragmentation.
The PARTITION clause is mandatory for interval and list fragmentation. A partition name must be specified following the PARTITION keyword. For example, the following statement generates an error:
CREATE INDEX add_zip_idx ON address(zip) FRAGMENT BY RANGE(zip) INTERVAL(1000) STORE IN (dbs1, dbs2, dbs3) VALUES < 10000 IN dbs3;
The following statement is correct:
CREATE INDEX add_zip_idx ON address(zip) FRAGMENT BY RANGE(zip) INTERVAL(1000) STORE IN (dbs1, dbs2, dbs3) PARTITION p1 VALUES < 10000 IN dbs3;
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-25802 fires when an interval/list fragmentation clause defines a fragment without the
required PARTITION <name> keyword — per the official guidance.
- A fragment defined without a
PARTITION <name>prefix, per the official guidance — the direct, only cause.
Solutions / Resolution
- Add a
PARTITION <name>clause before each fragment's value/range definition, per the official guidance.
Examples
Missing PARTITION clause
CREATE INDEX add_zip_idx ON address(zip)
FRAGMENT BY RANGE(zip) INTERVAL(1000) STORE IN (dbs1, dbs2, dbs3)
VALUES < 10000 IN dbs3;
-- -25802: missing PARTITION clause
Corrected
CREATE INDEX add_zip_idx ON address(zip)
FRAGMENT BY RANGE(zip) INTERVAL(1000) STORE IN (dbs1, dbs2, dbs3)
PARTITION p1 VALUES < 10000 IN dbs3;
Diagnostic Checks
- Check every fragment definition for a
PARTITION <name>prefix, and add it where missing.
Related Errors / Related Topics
- -25800 — "Cannot specify overlapping fragment expressions for interval or list fragmentation." A related interval/list fragmentation syntax error.
- -25813 — "The partition name used in the fragmentation scheme is not allowed." A
related
PARTITION-clause error, on a reserved name rather than a missing clause. - -25819 — "The INTERVAL clause is allowed with interval fragmentation scheme only." A related interval-fragmentation syntax restriction.
A fragment definition was missing its required PARTITION <name> clause — add it.