Re: BUG #19438: segfault with temp_file_limit inside cursor
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Rowley <dgrowleyml@gmail.com>
Cc: kuzmin.db4@gmail.com, pgsql-bugs@lists.postgresql.org
Date: 2026-03-30T16:29:20Z
Lists: pgsql-bugs
Attachments
- v2-fix-tuplestore-inconsistency-after-error.patch (text/x-diff) patch v2
I wrote: > Works for me. I'm done for the day but will make it so tomorrow. Pushed that, though in the event I wrote a rather longer apologia for why we use ERROR in one complaint and WARNING in the other. Getting back to the original bug ... I went through tuplestore.c and found two other places where foreseeable failures in subroutines could leave the tuplestore in an inconsistent state. I think we need to fix them all, per the attached draft against HEAD. The back branches might have more/different bugs, didn't look yet. regards, tom lane
Commits
-
Be more careful to preserve consistency of a tuplestore.
- 739477345036 19 (unreleased) landed
- adb7873bb933 18.4 landed
- 811f3263a48d 15.18 landed
- 7cd23aad2a7a 14.23 landed
- 59c139d53be3 16.14 landed
- 1f5b6a5e5d74 17.10 landed
-
Detect pfree or repalloc of a previously-freed memory chunk.
- a26ac902f662 16.14 landed
- 3f3eefc28892 18.4 landed
- 0c8b4e9cfc45 17.10 landed
- 095555daf124 19 (unreleased) landed
-
Improve performance of and reduce overheads of memory management
- c6e0fe1f2a08 16.0 cited