Support domain-typed and generated columns in the catalog and change feed
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Lĩnh vực
- data-engineering, databases
Hướng nghiên cứu
Start with the catalog startup code that reads column types from information_schema and the DDL trigger snapshot in the schema-change path, and compare how each resolves a domain. Tests for the domain cases and generated columns on PostgreSQL 17 and 18 are the place to confirm behaviour. Done when a schema change on a domain column no longer stops the server and stored generated columns flow on PostgreSQL 18.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
Two kinds of column are not handled correctly today.
- Domain-typed columns. A table with a domain column loads at startup, but any later schema change on that table stops the server, even one unrelated to the column. Startup reads the column's type from
information_schema, which reports the domain's base type (integer, carried asInt). The DDL trigger reports the domain's own name (positive_int), which the schema-change path doesn't recognise, so the column looks like it changed type.
CREATE DOMAIN positive_int AS integer CHECK (VALUE > 0);
CREATE TABLE orders (id int8 PRIMARY KEY, amount positive_int);
ALTER TABLE orders ADD COLUMN note text; -- server stops: `amount` "changed type"
Startup also gets some domain types wrong on its own:
- a domain over another domain is carried as
Stringinstead of its base type; - an array of a domain is carried as
List(String)instead of a list of the base type; - a domain over an array type stops the server on the next schema change.
- Generated columns. Generated columns are left out of the catalog with a startup warning, because PostgreSQL before 18 does not send them in the change feed. Clients can't read, filter or sort on them. PostgreSQL 18 can stream stored generated columns when the publication sets
publish_generated_columns = stored; virtual generated columns are never streamed.
Expected behavior
A domain-typed column should be treated as its base type everywhere: at startup, in the DDL trigger's snapshot, and in schema-change handling, including nested domains and arrays. Generated columns should be served wherever PostgreSQL streams them, and left out with a clear warning where it does not.
Acceptance criteria
- A schema change on a table with a domain-typed column doesn't stop the server.
- Startup and the DDL trigger resolve domains to the same type, including a domain over a domain, an array of a domain, and a domain over an array.
- On PostgreSQL 18 with
publish_generated_columns = stored, stored generated columns are served, and their values follow updates. - Virtual generated columns, and generated columns before PostgreSQL 18, are left out with a warning naming the reason.
- Tests cover each domain case and generated columns on PostgreSQL 17 and 18.
- Ngôn ngữ chính
- Rust
- Star
- 129
- Fork
- 7
- Merge trung bình
- 1 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của juspay/streamgres
-
Make the top-L client diff cost depend on what changed, not on the limitCó thể đã có người làm @SahilKhan101 đã nhận 2 ngày trước. Đang mởenhancement
juspay/streamgres#64 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Query optimisation: share initial snapshots across LIMIT variants of the same query (donor windows)Có thể đã có người làm @sprihaanand-juspay đã nhận 3 ngày trước. Đang mở
juspay/streamgres#58 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 Hơn một tuần Mức phù hợp với người mới 38/100
juspay/streamgres#56 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
juspay/streamgres#55 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PgBouncer transaction pooling: `prepare` runs outside the read transaction and can land on another backendCó thể đã có người làm @sprihaanand-juspay đã nhận 6 ngày trước. Đang mở
juspay/streamgres#53 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của juspay/streamgres
Issue tương tự
-
Test connection's password prompt says the password is never saved, also for a keychain profileĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area: settings bug Haiku review: no-score ui
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MMFoundation/WallpaperMachine#346 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Make the HTTP server's keep-alive and headers timeouts configurableCó thể đã có người làm @mattgodbolt đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
compiler-explorer/compiler-explorer#9902 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
jonathanong/no-mistakes#5490 ·
-
follow-up
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày