Skip to content

fix(rust): broaden Postgres cell decode + cut stream reallocations (#1979) - #1980

Merged
ZhuchkaTriplesix merged 1 commit into
epic/tauri-migrationfrom
issue/1979-pg-cell-types-alloc
Nov 15, 2026
Merged

ZhuchkaTriplesix merged 1 commit into
epic/tauri-migrationfrom
issue/1979-pg-cell-types-alloc

Conversation

@ZhuchkaTriplesix

Copy link
Copy Markdown
Member

Summary

  • Probe of types_showcase showed many <TYPE> placeholders (TIME, INTERVAL, MONEY, arrays, inet/mac, geometry, ranges, bits).
  • Decode those types; TEXT[] (e.g. shop.products.tags) becomes a JSON array.
  • Resolve CellKind once per column from describe (not per cell); batch flush uses replace(…, with_capacity) instead of take+reserve.
  • Multirange still unsupported (rare); left for a later slice.

Closes #1979

Test plan

  • cargo test --lib (53 passed, incl. showcase no-placeholder + tags array)
  • cargo clippy --all-targets -- -D warnings
  • Open types_showcase.all_numerics / all_arrays / shop.products in app
  • CI green

…1979)

Cache per-column decode strategy from describe, decode arrays/time/
interval/money/inet/mac/geometry/ranges/bits, and replace batch buffers
with capacity instead of take+reserve churn.
@github-actions github-actions Bot added P1 High priority / Core capability tauri Tauri 2 / apps/tauri migration track rust Rust backend (src-tauri / crates) labels Nov 15, 2026
@ZhuchkaTriplesix
ZhuchkaTriplesix merged commit 985971d into epic/tauri-migration Nov 15, 2026
3 checks passed
@ZhuchkaTriplesix
ZhuchkaTriplesix deleted the issue/1979-pg-cell-types-alloc branch November 15, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1 High priority / Core capability rust Rust backend (src-tauri / crates) tauri Tauri 2 / apps/tauri migration track

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant