Repository navigation
test: spike E, the impact table measured on PostgreSQL 16 and 18 and SQL Server 2022 - #60
Merged
Merged
Conversation
…lusion constraint and a trigger, measured on live servers PostgreSQL 16 and 18 are measured and pinned. The SQL Server rows are what 5.x recorded, to be replaced by the first run on a server. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
Co-Authored-By: Claude Fable 5.2 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #20
Problem
The plan's section 3.7 has four answers a contributor gives for an operation of EF Core's on something its object depends on (
Unaffected,Follows,Lost,Blocks), and no table of what the servers actually do. 5.x learned it one bug at a time. The planner (#24) needs the table first.Change
spikes/E.ImpactTable: a test per cell. A cell creates a table and one object, runs the statements the provider's ownIMigrationsSqlGeneratorwrites for the operation, and reads the catalog.Expected.csis the table as measured; a server that answers otherwise fails the cell.design/schemakit-core-plan.md, section 3.7: the two tables and what they say beyond their cells..github/workflows/dotnet.yml: theSpikesjob gets PostgreSQL 16 and SQL Server 2022 as services, and puts the measured tables into the job summary.What was measured
PostgreSQL 16 and 18 answer alike in every cell.
INCLUDE, or in its predicateUPDATE OFthe column, or with it inWHENINCLUDEIF UPDATEincludedTo decide with the maintainer:
Staleis a fifth outcome and the union has four. A trigger whose body reads a column stays in the catalog through the column's rename and drop and fails when it next fires, so every write to the table fails.Lostwould leave it in place.Blockshas the right action (drop before, create after) and the wrong name, since the operation does not fail. Either its meaning is documented as "rebuild around the operation" or it is renamed before the contract freezes. Noted on #24.Other findings, each in the plan:
AlterColumnblocks under a trigger, because Npgsql writesALTER COLUMN … TYPEfor everyAlterColumnOperation.ALTER COLUMNas refused under any index; that is true of a type change.Not measured: nullable to not null, a clustered index, a computed column, and SQLite.
Tests
Locally, on SDK 11.0.100 against
postgres:16-alpineandpostgres:18in Docker: 132 passed, 52 inconclusive (the SQL Server cells). The SQL Server image does not start under emulation on this machine, so its cells were measured in CI, where an unset server fails instead of going inconclusive.That a cell fails when the server answers otherwise is shown by this PR's first complete run: two SQL Server cells had been written from 5.x's record (
Blocksfor a nullability change under a plain index) and failed with what the server did.Every_operation_succeeds_on_a_table_nothing_depends_onis what makesBlocksthe object's doing;The_table_is_completefails when an object or an operation has no expected cell.🤖 Generated with Claude Code