Reset the binary heap in MergeAppend rescans.
Failing to do so can cause queries to return wrong data, error out or crash.
This requires adding a new binaryheap_reset() method to binaryheap.c,
but that probably should have been there anyway.
Per bug #8410 from Terje Elde. Diagnosis and patch by
Reset the binary heap in MergeAppend rescans.
Failing to do so can cause queries to return wrong data, error out or crash.
This requires adding a new binaryheap_reset() method to binaryheap.c,
but that probably should have been there anyway.
Per bug #8410 from Terje Elde. Diagnosis and patch by
Add test case for bug #8410.
Per Andres Freund.
Branch
--
master
Details
---
http://git.postgresql.org/pg/commitdiff/ac2d0e464aef5bbef1308abf0154986b3982714d
Modified Files
--
src/test/regress/expected/inherit.out | 41 +
src/test/regress/sql
Add test case for bug #8410.
Per Andres Freund.
Branch
--
REL9_3_STABLE
Details
---
http://git.postgresql.org/pg/commitdiff/ce58aad2ba13885e2c5fa50e31ee5945e883096b
Modified Files
--
src/test/regress/expected/inherit.out | 41 +
src/test/regr
Improve regression test for #8410.
The previous version of the query disregarded the result of the MergeAppend
instead of checking its results.
Andres Freund
Branch
--
REL9_3_STABLE
Details
---
http://git.postgresql.org/pg/commitdiff/3c2a425da71d56edade2d7e2734305e8af778c9a
Modified Fi
Improve regression test for #8410.
The previous version of the query disregarded the result of the MergeAppend
instead of checking its results.
Andres Freund
Branch
--
master
Details
---
http://git.postgresql.org/pg/commitdiff/abd3f8ca4b84707adba2e6d69413c724715cceb3
Modified Files
---