Reference

Diagnostics and safe rollout checklist

Before shipping a user-facing serving query:

  1. Write the exact query shape.
  2. Create the primary key, access path, hybrid descriptor, rollup, or bounded join path that should drive it.
  3. Wait for queryability.
  4. Run EXPLAIN (FORMAT JSON) ADMIT.
  5. Verify selected driver, pushed filters, residual verification, candidate budget, ordering/ranking contract, page identity, and owner-aware routing evidence.
  6. Run ADVISE if the query refuses or reports weak evidence.
  7. Treat typed refusal as a safety feature, not a missing catch-all scan path.

Useful stable refusal codes include unsupported-shape, missing-index-family, insufficient-index-order, range-budget-unproven, capability-not-queryable, conflicting-order-contract, over-budget-tablet-fanout, over-budget-candidate-fanout, over-budget-verification, continuation-drift, and schema-generation-incompatible.