feat: DDL 锁级别标识(D + L1–L8)与 codeweb conflicts (#144) - #150
Merged
Merged
Conversation
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.
Summary
为表访问边增加正交的
D(是否 DDL)与L1–L8(openGauss 8 级表锁)标签,并新增codeweb conflicts报告跨存过锁冲突。升级 ogsql-parser 到 v0.10.0(含 #321 内联 DDL 结构化 AST)。Fixes #144
Fixes #143
Changes
AccessMode::Truncate正名为AccessExclusive(同一0b1000bit),补齐 L4–L7;STORE_VERSION仍为 8,旧 store 可加载[R]/[W:insert]/[lock];Lx仅在最高级 ≥L4 或含 DDL 时显示;D:由 WriteKind 纯函数推导ALTER/DROP TABLE、CREATE INDEX[+CONCURRENTLY]、LOCK TABLE、VACUUM/ANALYZE、CLUSTER、REINDEXcodeweb conflicts [--severity high|medium] [--format json|text] [--table NAME]:TRUNCATE vs SELECT → HIGH;两个 INSERT → 不报v0.8.33→v0.10.0(内联 DDL 走PlStatement::SqlStatement,visitor 可下钻)Testing
cargo build --features fullcargo test --features fullcargo clippy --features full -- -D warningscargo fmt -- --checkTRUNCATE、EXECUTE IMMEDIATE 'TRUNCATE …'、conflictsHIGH/静默 INSERT 对Notes
LOCK TABLE/VACUUM/ANALYZE不打D标签