Thread

  1. Re: Asynchronous MergeAppend

    Alexander Pyhalov <a.pyhalov@postgrespro.ru> — 2025-07-26T07:56:22Z

    Hi.
    
    I've updated patches for asynchronous merge append. They allowed us to 
    significantly improve performance in practice. Earlier select from 
    partitioned (and distributed table) could switch to synchronous merge 
    append plan from asynchronous append. Given that table could have 20+ 
    partitions, it was cheaper, but much less efficient due to remote parts 
    executing synchronously.
    
    In this version there's a couple of small fixes - earlier 
    ExecMergeAppend() scanned all asyncplans, but should do this only for 
    valid asyncplans. Also incorporated logic from
    
    commit af717317a04f5217728ce296edf4a581eb7e6ea0
    Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
    Date:   Wed Mar 12 20:53:09 2025 +0200
    
         Handle interrupts while waiting on Append's async subplans
    
    into ExecMergeAppendAsyncEventWait().
    
    -- 
    Best regards,
    Alexander Pyhalov,
    Postgres Professional