pg_dump/pg_dumpall do not dump storage servers or storage user mappings
Maintainer thường phản hồi trong vòng 2 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
Hướng nghiên cứu
Start in src/bin/pg_dump/ and pg_dumpall, where the dump of roles and tablespaces is emitted, and check how --globals-only picks its objects. The catalogs to read are gp_storage_server and gp_storage_user_mapping. Done means the dump emits CREATE STORAGE SERVER and CREATE STORAGE USER MAPPING before per-database content, with the credential options handled like user-mapping options. Owner and comment output depends on #2312 landing first.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Apache Cloudberry version
main (verified on a build of 3.0.0-devel)
What happened
Neither pg_dump nor pg_dumpall emits storage servers (gp_storage_server) or storage user mappings (gp_storage_user_mapping). There is no reference to either catalog anywhere under src/bin/pg_dump/.
As a result, a dump/restore (or any upgrade path that relies on pg_dumpall) silently loses every storage server definition, its options, and all storage user mappings. Directory tables that refer to those servers cannot work after the restore until the servers are recreated by hand.
This gap will also cover the properties added by #2312 (ALTER STORAGE SERVER ... OWNER TO and COMMENT ON STORAGE SERVER, for #1299). Neither a non-default owner nor a comment would survive a dump either.
What you think should happen instead
Because storage servers and their user mappings are cluster-wide (shared catalogs), pg_dumpall should emit them, as it does for roles and tablespaces:
CREATE STORAGE SERVER ... OPTIONS (...)ALTER STORAGE SERVER ... OWNER TO ...(once #2312 lands)COMMENT ON STORAGE SERVER ... IS ...(once #2312 lands)CREATE STORAGE USER MAPPING FOR ... STORAGE SERVER ... OPTIONS (...)
They should be emitted before per-database content, so that directory tables restore against existing servers. Storage user mapping options may contain credentials, so they deserve the same consideration as user-mapping options in pg_dump. They should probably also be included in --globals-only.
How to reproduce
CREATE ROLE sm_owner;
CREATE STORAGE SERVER s1 OPTIONS (endpoint 'x');
CREATE STORAGE USER MAPPING FOR sm_owner STORAGE SERVER s1 OPTIONS (accesskey 'k');
pg_dumpall --globals-only | grep -ci 'storage server' # 0
pg_dumpall | grep -i 'storage server' # nothing
Operating System
Rocky Linux 8 (also applies to any platform; the code is missing)
Anything else
Found while reviewing #2312.
- Ngôn ngữ chính
- C
- Star
- 1.4k
- Fork
- 273
- Merge trung bình
- 4 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 105
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- 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 apache/cloudberry
-
isolation2 lockmodes fails on cassert builds: extra AccessShareLock on partition rootCó thể đã có người làm @tuhaihe đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/cloudberry#2356 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
psql tab completion broken for storage servers, tags, profiles and resource groups (pre-PG15 query format)Có thể đã có người làm @allenvox đã nhận 5 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
apache/cloudberry#2316 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[Bug] Expand fails to recognize user-defined tablespacesCó thể đã có người làm @nix-oss đã nhận 92 ngày trước. Đang mởtype: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
apache/cloudberry#1885 · 2 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
gpexpand first stage fails: 'SyncPackages' object has no attribute 'ret' (extension sync never runs; regression)Có thể đã có người làm @talmacschen-arch đã nhận 153 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
apache/cloudberry#1825 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
type: Bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 53/100
apache/cloudberry#2350 · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của apache/cloudberry
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
windows-artifacts: the win-arm64 job uses a Visual Studio generator missing from windows-11-armĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
wasm-micro-runtime/wasm-micro-runtime#5217 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
HandBrake/HandBrake#8278 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày