QP support for nested WITH construction collab/berick/qp-support-nested-WITH
authorBill Erickson <berick@esilibrary.com>
Fri, 18 May 2012 20:42:19 +0000 (16:42 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 18 May 2012 20:42:19 +0000 (16:42 -0400)
commit791046baf5c7ec3aae1d84aa1ed91758b23e2480
treede322f0900c630c1449c8beb7d3ded0f63e8c187
parentf2a11f55a53d3f5a5af1510a4d1016711e0763da
QP support for nested WITH construction

Nested query plans build their own tsquery chunks which have to be
individually JOINed to the final query.  To do this, each tsquery SELECT
gets its own entry in the top-level WITH, complete with alias for
joining.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm