Repository navigation
read "char" as u8, not char - #358
Conversation
849750a to
14730f0
Compare
There was a problem hiding this comment.
Auto-approved by the AI review gate on 14730f0. Details in the approver's comment on this pull request.
AI review gate — auto-approved
History (latest 5 heads, newest first)
|
There was a problem hiding this comment.
Auto-approved by the AI review gate on 043b332. Details in the approver's comment on this pull request.
There was a problem hiding this comment.
Auto-approved by the AI review gate on 72f6d16. Details in the approver's comment on this pull request.
Note
Low Risk
Mechanical type and literal churn across catalog, decode, and tests; wire format is unchanged and behavior is stricter for non-ASCII byte values in PG char columns.
Overview
Replaces Rust
charwithu8everywhere the code mirrors PostgreSQL’s one-byte"char"catalog fields (relkind,relpersistence,relreplident,attalign,attstorage, and the same onRelDescriptor/RelAttr).Bridge and SQL paths now treat these as a single raw byte (
only_char,pg::char_at) instead of UTF‑8 scalar parsing; user-facing text still useschar::fromwhere needed. Descriptor log encode/decode drops thecharlikehelper and reads/writes bytes directly. Heap decode alignment usesu8and removes the old alignment-char validation error.Call sites, tests, and benches are updated to
b'r'-style literals andmatches!on byte patterns.Reviewed by Cursor Bugbot for commit 72f6d16. Bugbot is set up for automated code reviews on this repo. Configure here.