Skip to content

test: what the analysis of the first two PgExclusion slices found untested - #89

Merged
CaffeinatedCoder merged 1 commit into
mainfrom
test/pg-exclusion-missing-tests
Nov 12, 2026
Merged

CaffeinatedCoder merged 1 commit into
mainfrom
test/pg-exclusion-missing-tests

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

Closes #84

Problem

The analysis of #77 and #79 seeded nine defects that every test, live ones included, still passed. Each is a rule of the contributor or the planner that nothing held.

Change

Tests only. No shipping code changed: every new test passed on its first run.

Seeded defect Now fails
The extension decided on the source model Whether_the_extension_is_installed_is_the_target_models_to_say
Only the first element judged for btree_gist The_extension_is_added_for_what_needs_it_and_for_nothing_else (a scalar after the range)
An expression counts for = alone the same test (<> gets it, && does not)
Plan ignores the condition, the elements, the access method Another_condition_operator_or_access_method_is_a_rebuild, one assertion each
The condition written as operational The_condition_is_in_an_unnamed_constraints_key
A moved table answered Unaffected A_table_moved_to_another_schema_leaves_its_constraint_alone

Live, on a database each: a changed condition, operator and access method, and a table moved to another schema with a named and with a default-named constraint, leave the catalog EnsureCreated() builds; a scalar after the range gets the extension.

The two keys of the unnamed constraints were computed outside the code from the documented identity rule.

Not covered

The constraint's name qualified with the table's schema still passes every test. It changes no statement and no match: the statements write the bare name, and a moved table's source side is resolved again under the move. It will show where name claims are read, so its test belongs to #44, and a note is there.

Tests

451 kernel, 68 PostgreSQL offline, 34 live on PostgreSQL 16.15 and 18.6. Each seed above was put back into a scratch copy and the named test failed.

🤖 Generated with Claude Code

@CaffeinatedCoder CaffeinatedCoder added this to the 11.0.0 milestone Nov 12, 2026
@CaffeinatedCoder CaffeinatedCoder added tests Adds or changes tests only (harnesses, parity suites); no library code package/core Affects CodoMetis.EFCore.SchemaKit (the kernel) package/postgresql Affects CodoMetis.EFCore.SchemaKit.PostgreSQL area/constraints Exclusion constraints, row guards and other constraint-like objects labels Nov 12, 2026
@CaffeinatedCoder
CaffeinatedCoder merged commit a06139f into main Nov 12, 2026
7 checks passed
@CaffeinatedCoder
CaffeinatedCoder deleted the test/pg-exclusion-missing-tests branch November 12, 2026 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/constraints Exclusion constraints, row guards and other constraint-like objects package/core Affects CodoMetis.EFCore.SchemaKit (the kernel) package/postgresql Affects CodoMetis.EFCore.SchemaKit.PostgreSQL tests Adds or changes tests only (harnesses, parity suites); no library code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tests the analysis of the first two PgExclusion slices found missing

1 participant