Skip to content
Snippets Groups Projects
  • Tom Lane's avatar
    8e2b71d2
    Reset the binary heap in MergeAppend rescans. · 8e2b71d2
    Tom Lane authored
    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 Andres Freund.
    8e2b71d2
    History
    Reset the binary heap in MergeAppend rescans.
    Tom Lane authored
    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 Andres Freund.