Informix Error -736
Cause and resolution
The RESOLUTION and SAMPLING SIZE clauses are not valid for the LOW mode of the UPDATE STATISTICS statement.
Because data distributions are constructed only in the MEDIUM or HIGH modes of the UPDATE STATISTICS statement, specifying the resolution or sampling size is not meaningful in LOW mode.
Remove the RESOLUTION clause and the SAMPLING SIZE clause from the statement.
To use the SAMPLING SIZE clause, change the mode to MEDIUM. To use the RESOLUTION clause, change the mode to MEDIUM or HIGH.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-736 fires when UPDATE STATISTICS LOW includes a RESOLUTION or SAMPLING SIZE clause — per
the official guidance, data distributions (which those two clauses configure) are only built in
MEDIUM or HIGH mode, so specifying them in LOW mode isn't meaningful.
RESOLUTION/SAMPLING SIZEincluded on anUPDATE STATISTICS LOWstatement, per the official guidance — the direct, only cause.- A statement copy-pasted from a
MEDIUM/HIGHmode template, with the mode changed toLOWbut the now-inapplicable clauses left in place.
Solutions / Resolution
- Remove the
RESOLUTIONandSAMPLING SIZEclauses, per the official guidance, ifLOWmode is genuinely what's needed. - Change the mode to
MEDIUMto useSAMPLING SIZE, per the official guidance. - Change the mode to
MEDIUMorHIGHto useRESOLUTION, per the official guidance.
Examples
The disallowed combination
UPDATE STATISTICS LOW RESOLUTION 0.5 FOR TABLE orders;
-- -736: RESOLUTION isn't valid in LOW mode
Corrected — remove the clause for LOW mode
UPDATE STATISTICS LOW FOR TABLE orders;
Or corrected — switch to a mode that supports RESOLUTION
UPDATE STATISTICS MEDIUM RESOLUTION 0.5 FOR TABLE orders;
Diagnostic Checks
- Check whether
UPDATE STATISTICS LOWincludesRESOLUTIONorSAMPLING SIZE, and either remove the clause or change the mode.
Related Errors / Related Topics
- -737 — "The confidence value and the SAMPLING SIZE clause are not valid for the HIGH mode
of the UPDATE STATISTICS statement." A related mode/clause-compatibility restriction, for
HIGHmode instead ofLOW. - -738 — "DROP DISTRIBUTIONS is only valid in LOW mode." A related
UPDATE STATISTICSmode-compatibility restriction, on a different clause.
RESOLUTION/SAMPLING SIZE need MEDIUM or HIGH mode — remove them from a LOW-mode
statement, or switch modes.