[Bug] Cross-partition UPDATE into a foreign partition silently loses rows
Los mantenedores suelen responder en 3 días
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 48/100
Línea de trabajo
Start by tracing partition row movement through the UPDATE executor and the postgres_fdw foreign-partition write path; the reproduction uses batch_size '10' and moves 25 rows from local partition p1 to foreign partition p2. Check the existing tests for partition updates with foreign tables, then add a regression case showing all 25 rows reach p2 after the update.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Apache Cloudberry version
No response
What happened
An UPDATE that moves rows from a local partition to a postgres_fdw foreign partition commits, but the rows are deleted from the local partition and never reach the foreign table.
What you think should happen instead
No response
How to reproduce
-- in database fdwr
CREATE TABLE r2 (a int, b int) DISTRIBUTED BY (b);
-- in another database
CREATE EXTENSION postgres_fdw;
CREATE SERVER s FOREIGN DATA WRAPPER postgres_fdw
OPTIONS (host '/tmp', port '7000', dbname 'fdwr', batch_size '10');
CREATE USER MAPPING FOR current_user SERVER s;
CREATE TABLE part (a int, b int) PARTITION BY LIST (a) DISTRIBUTED BY (b);
CREATE TABLE p1 PARTITION OF part FOR VALUES IN (1);
CREATE FOREIGN TABLE p2 PARTITION OF part FOR VALUES IN (2)
SERVER s OPTIONS (table_name 'r2');
INSERT INTO part SELECT 1, i FROM generate_series(1, 25) i;
UPDATE part SET a = 2 WHERE a = 1;
SELECT count(*) FROM p1; -- 0
SELECT count(*) FROM p2; -- 0, expected 25
Operating System
ubuntu24
Anything else
No response
Are you willing to submit PR?
- Yes, I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct.
- Lenguaje dominante
- C
- Estrellas
- 1.4k
- Forks
- 265
- Merge medio
- 3 d 22 h
- PR fusionados (30 d)
- 82
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 apache/cloudberry
-
[Bug] Expand fails to recognize user-defined tablespacesPosiblemente ocupada @nix-oss la tomó hace 79 días. Abiertotype: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
apache/cloudberry#1885 · 2 reacciones ·
Los mantenedores suelen responder en 3 días
-
gpexpand first stage fails: 'SyncPackages' object has no attribute 'ret' (extension sync never runs; regression)Posiblemente ocupada @talmacschen-arch la tomó hace 140 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
apache/cloudberry#1825 ·
Los mantenedores suelen responder en 3 días
-
Dificultad 3/5 Medio día Aptitud para principiantes 30/100
apache/cloudberry#2224 ·
Los mantenedores suelen responder en 3 días
-
[Bug] GPORCA: “could not find MotionState” for correlated EXISTS with LIMIT and a scalar subqueryPosiblemente ocupada @Alena0704 la tomó hace 7 días. Abiertotype: Bug
apache/cloudberry#2221 · 1 asignado ·
Los mantenedores suelen responder en 3 días
-
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
apache/cloudberry#2214 · 2 comentarios ·
Los mantenedores suelen responder en 3 días
Todos los issues de apache/cloudberry
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
ly05010419/MacNativeGames#1796 ·
Los mantenedores suelen responder en 1 día
-
[Bug] Wi-Fi associates with a distant AP on multi-AP networks (fast scan, no signal sorting)Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
jniebuhr/gaggimate#1009 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
-
Bug :bug:
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
sonic-net/sonic-buildimage#30563 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
llvm/offload-test-suite#1698 ·
Los mantenedores suelen responder en 1 día