[Bug] Temp AO table files are not deleted
Los mantenedores suelen responder en 2 días
@reshke ya está trabajando en esto.
Desde el 30/3/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Apache Cloudberry version
The main branch, commit 822c60081b8b0bd3bb13af83a74520311ee73d25
What happened
When I create AO temporary table and drop it, the table files are not deleted. But when I create heap temporary table and drop it, there is no files in the tablespace.
What you think should happen instead
No response
How to reproduce
Run default demo cluster. When I create AO temporary table and drop it, the table files are not deleted.
postgres=# \! rm -rf /tmp/tts_tblspace;
postgres=# \! mkdir -p /tmp/tts_tblspace;
postgres=# CREATE TABLESPACE tts_tblspace LOCATION '/tmp/tts_tblspace';
CREATE TABLESPACE
postgres=# CREATE TEMP TABLE ts(i INT)
WITH (APPENDOPTIMIZED = TRUE)
TABLESPACE tts_tblspace
DISTRIBUTED BY (i);
CREATE TABLE
postgres=# select relfilenode from pg_class where oid=(select relid from pg_appendonly);
relfilenode
-------------
16393
(1 row)
postgres=# drop table ts;
DROP TABLE
postgres=# \! find /tmp/tts_tblspace
/tmp/tts_tblspace
/tmp/tts_tblspace/1
/tmp/tts_tblspace/1/GPDB_3_302509031
/tmp/tts_tblspace/1/GPDB_3_302509031/13425
/tmp/tts_tblspace/1/GPDB_3_302509031/13425/t_16393
/tmp/tts_tblspace/2
/tmp/tts_tblspace/2/GPDB_3_302509031
/tmp/tts_tblspace/2/GPDB_3_302509031/13425
/tmp/tts_tblspace/2/GPDB_3_302509031/13425/t_16393
/tmp/tts_tblspace/6
/tmp/tts_tblspace/6/GPDB_3_302509031
/tmp/tts_tblspace/8
/tmp/tts_tblspace/8/GPDB_3_302509031
/tmp/tts_tblspace/7
/tmp/tts_tblspace/7/GPDB_3_302509031
/tmp/tts_tblspace/3
/tmp/tts_tblspace/3/GPDB_3_302509031
/tmp/tts_tblspace/3/GPDB_3_302509031/13425
/tmp/tts_tblspace/3/GPDB_3_302509031/13425/t_16393
/tmp/tts_tblspace/4
/tmp/tts_tblspace/4/GPDB_3_302509031
/tmp/tts_tblspace/4/GPDB_3_302509031/13425
/tmp/tts_tblspace/4/GPDB_3_302509031/13425/t_16393
/tmp/tts_tblspace/5
/tmp/tts_tblspace/5/GPDB_3_302509031
postgres=#
But when I create heap temporary table and drop it, there is no files in the tablespace.
postgres=# CREATE TEMP TABLE ts(i INT)
TABLESPACE tts_tblspace
DISTRIBUTED BY (i);
CREATE TABLE
postgres=# DROP TABLE ts;
DROP TABLE
postgres=# \! find /tmp/tts_tblspace
/tmp/tts_tblspace
/tmp/tts_tblspace/1
/tmp/tts_tblspace/1/GPDB_3_302509031
/tmp/tts_tblspace/1/GPDB_3_302509031/13425
/tmp/tts_tblspace/2
/tmp/tts_tblspace/2/GPDB_3_302509031
/tmp/tts_tblspace/2/GPDB_3_302509031/13425
/tmp/tts_tblspace/6
/tmp/tts_tblspace/6/GPDB_3_302509031
/tmp/tts_tblspace/8
/tmp/tts_tblspace/8/GPDB_3_302509031
/tmp/tts_tblspace/7
/tmp/tts_tblspace/7/GPDB_3_302509031
/tmp/tts_tblspace/3
/tmp/tts_tblspace/3/GPDB_3_302509031
/tmp/tts_tblspace/3/GPDB_3_302509031/13425
/tmp/tts_tblspace/4
/tmp/tts_tblspace/4/GPDB_3_302509031
/tmp/tts_tblspace/4/GPDB_3_302509031/13425
/tmp/tts_tblspace/5
/tmp/tts_tblspace/5/GPDB_3_302509031
postgres=#
Operating System
Ubuntu 22.04.5 LTS
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
- 248
- Merge medio
- 4 d 17 h
- PR fusionados (30 d)
- 40
Preparar el entorno
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
-
type: Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
apache/cloudberry#1885 · 2 reacciones ·
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100
apache/cloudberry#1825 ·
Los mantenedores suelen responder en 2 días
-
[Bug] UPDATE of the distribution key fails with "can't split update for inherit table" after the child table is droppedPosiblemente ocupada @aryan9948 la tomó hace 2 días. Abiertotype: Bug
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
apache/cloudberry#2048 · 5 comentarios · 1 reacción · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
[Bug] Wrong results: GPORCA evaluates a window function in a correlated aggregate subquery over all groupsPosiblemente ocupada @andr-sokolov la tomó hace 2 días. Abiertotype: Bug
Dificultad 4/5 3-5 días Aptitud para principiantes 40/100
apache/cloudberry#2047 · 1 asignado ·
Los mantenedores suelen responder en 2 días
-
[Bug] Wrong results: GPORCA returns NULL instead of the empty-input value for correlated aggregate subqueries other than countPosiblemente ocupada @Alena0704 la tomó hace 2 días. Abiertotype: Bug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
apache/cloudberry#2046 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 2 días
Todos los issues de apache/cloudberry
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 1 día
-
Failed to resolve logo sourceAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
fastfetch-cli/fastfetch#2628 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
FujiNetWIFI/fujinet-firmware#1736 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 3 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 86/100