* subversion/libsvn_wc/wc-queries.sql (STMT_SELECT_ALL_EXCLUDED_NODES): Remove selection of node itself and wcroot. Also select excluded nodes. (STMT_SELECT_ALL_EXCLUDED_WCROOT): New statement, like STMT_SELECT_ALL_EXCLUDED_NODES, but specialized to use on the wcroot.
* subversion/libsvn_wc/wc_db.c (svn_wc__db_get_server_excluded_subtrees): Rename to ... (svn_wc__db_get_excluded_subtrees): ... this. Use separate new queries. Don't ask for copying in the scratch pool if we are copying it to result_pool within its original lifetime
* subversion/tests/libsvn_wc/wc-queries-test.c (slow_statements): Add STMT_SELECT_ALL_EXCLUDED_WCROOT to the operationg on the entire wc list. Remove STMT_SELECT_ALL_SERVER_EXCLUDED_NODES as it properly uses an index instead of a table scan now.