Nonempty icollection values cannot be read back from text or restored from a dump
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 35/100
調査の方向性
Start with the integer-key output and input functions described in the issue, then inspect test/sql/subscript.sql around test 18. Reproduce the text round-trip failure and check the existing test coverage. Done means a nonempty icollection value can be read back from its text output and restored from a dump; linked pull request #49 indicates work is already underway.
索引モデルが issue の本文から書いたものです。
説明
Hi! I found a text round-trip failure for nonempty integer-key collections in pgcollection 2.1.3. It also prevents restoring a table containing one of these values.
CREATE EXTENSION collection;
CREATE TABLE sample (c icollection);
INSERT INTO sample VALUES ('{"value_type":"bigint","entries":{"2":"2"}}');
SELECT c::text FROM sample; -- {2: 2}
SELECT c::text::icollection FROM sample; -- ERROR: Invalid format
On PostgreSQL 19.0, dumping this database with pg_dump -Fc succeeds, but pg_restore --exit-on-error fails during COPY sample on the same value. I expected to read back key 2 with its original bigint value.
The integer-key output function omits the value type and writes unquoted keys; the input function expects a JSON object with value_type and entries. Subscript test 18 already exercises this case. Issue #7 concerned the string-key collection.
- 主要言語
- C
- スター
- 24
- フォーク
- 6
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aws/pgcollection のほかの issue
-
The LLVM object can build before collection_config.h is generated対応中かも @Vonng が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
aws/pgcollection#51 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 52/100
aws/pgcollection#50 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
aws/pgcollection#32 ·
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
aws/pgcollection#6 · コメント 2 件 ·
aws/pgcollection の issue をすべて見る
似ている issue
-
issue: bug report
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
BasedHardware/omi#26486 ·
メンテナーはふだん 1 日以内に返信
-
area/docdb kind/failing-test priority/medium status/awaiting-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
yugabyte/yugabyte-db#39462 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
libreswan/libreswan#3185 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 3 日以内に返信