Nonempty icollection values cannot be read back from text or restored from a dump
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 35/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C
- Estrellas
- 24
- Forks
- 6
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de aws/pgcollection
-
The LLVM object can build before collection_config.h is generatedPosiblemente ocupada @Vonng la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
aws/pgcollection#51 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 52/100
aws/pgcollection#50 ·
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 38/100
aws/pgcollection#32 ·
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
aws/pgcollection#6 · 2 comentarios ·
Todos los issues de aws/pgcollection
Issues similares
-
issue: bug report
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 2 días
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
BasedHardware/omi#26486 ·
Los mantenedores suelen responder en 1 día
-
area/docdb kind/failing-test priority/medium status/awaiting-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
yugabyte/yugabyte-db#39462 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
libreswan/libreswan#3185 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 3 días