Commit 77823b5
committed
graph: Re-enable postponed index creation in debug builds
The v0.44.0 disable patch hardcoded `postpone_attribute_index_creation`
to `false`, which broke three `relational::ddl_tests` (`generate_ddl`,
`generate_postponed_indexes`, `postponed_indexes_with_block_column`)
that exercise the postponed-index DDL path and relied on the prior
`cfg!(debug_assertions)` auto-on for that coverage.
Switch the field to `cfg!(debug_assertions)` so:
- Release builds (production): postponement stays off regardless of
env var, matching the intent of the original disable.
- Debug builds (CI + dev): postponement is on, so the existing tests
exercise the code path and pass.
The `GRAPH_POSTPONE_ATTRIBUTE_INDEX_CREATION` env var stays inert
(parsed but unused, hence the existing `#[allow(unused)]`).1 parent 3bd36c9 commit 77823b5
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
351 | 351 | | |
352 | 352 | | |
353 | 353 | | |
354 | | - | |
| 354 | + | |
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| |||
0 commit comments