Thread

Commits

  1. Improve coverage of nodeAppend runtime partition prune

  1. Test coverage for mark_invalid_subplans_as_finished

    David Rowley <david.rowley@2ndquadrant.com> — 2018-04-17T09:46:35Z

    Alvaro pinged me off list to mention the coverage tool indicates that
    there's no test coverage for mark_invalid_subplans_as_finished() [1].
    
    The attached patch aims to put that right. This function would only
    ever be called during a Parallel Append in a query which has some exec
    Params being compared to the partition key.  Having only external
    params would cause the unneeded subnodes to be completely eliminated
    during initialization of the Append node. So it seems I just failed to
    update the tests when I made the code eliminate the unneeded subplans
    during initialization of the executor.
    
    In passing I also noticed that the ab_q6 tests were not actually
    required to have a generic plan. The tests were testing exec Params
    not external Params, so there was no need for the PREPARE. I've
    removed the PREPARE and just made these plain queries. I've ended up
    calling the new queries from explain_parallel_append. That may be
    unnecessary since they don't actually have a Parallel Append node,
    just an Append.
    
    [1] https://coverage.postgresql.org/src/backend/executor/nodeAppend.c.gcov.html
    
    -- 
     David Rowley                   http://www.2ndQuadrant.com/
     PostgreSQL Development, 24x7 Support, Training & Services
    
  2. Re: Test coverage for mark_invalid_subplans_as_finished

    Alvaro Herrera <alvherre@alvh.no-ip.org> — 2018-04-17T15:30:53Z

    Thanks for that, pushed.
    
    -- 
    Álvaro Herrera                https://www.2ndQuadrant.com/
    PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services