Re: Use generation memory context for tuplestore.c
Alexander Law <exclusion@gmail.com>
From: Alexander Lakhin <exclusion@gmail.com>
To: David Rowley <dgrowleyml@gmail.com>
Cc: Matthias van de Meent <boekewurm+postgres@gmail.com>,
PostgreSQL Developers <pgsql-hackers@lists.postgresql.org>
Date: 2024-07-05T14:00:00Z
Lists: pgsql-hackers
05.07.2024 07:57, David Rowley wrote:
> Thanks for the report. I've just pushed a fix in 53abb1e0e.
Thank you, David!
Please look at another anomaly introduced with 590b045c3:
echo "
CREATE TABLE t(f int, t int);
INSERT INTO t VALUES (1, 1);
WITH RECURSIVE sg(f, t) AS (
SELECT * FROM t t1
UNION ALL
SELECT t2.* FROM t t2, sg WHERE t2.f = sg.t
) SEARCH DEPTH FIRST BY f, t SET seq
SELECT * FROM sg;
" | timeout 60 psql
triggers
TRAP: failed Assert("chunk->requested_size < oldsize"), File: "generation.c", Line: 842, PID: 830294
Best regards,
Alexander
Commits
-
Adjust tuplestore.c not to allocate BufFiles in generation context
- 04bcf9e19a42 18.0 landed
-
Fix incorrect sentinel byte logic in GenerationRealloc()
- 49e29cbe8cbc 16.4 landed
- 84a9d3800628 17.0 landed
- 97651b0139cf 18.0 landed
-
Improve memory management and performance of tuplestore.c
- 590b045c37aa 18.0 landed
-
Fix newly introduced issue in EXPLAIN for Materialize nodes
- 53abb1e0ebc3 18.0 landed
-
Add memory/disk usage for Material nodes in EXPLAIN
- 1eff8279d494 18.0 landed