Keep standard INNER joins above possible OUTERs
authorMike Rylander <mrylander@gmail.com>
Thu, 12 Sep 2013 17:26:21 +0000 (13:26 -0400)
committerBen Shum <bshum@biblio.org>
Sat, 15 Feb 2014 00:38:41 +0000 (19:38 -0500)
commit7693c0fc9bed8d97de74213c1fed7de796d9816d
treefc9823bf1ad41f93f9a0e0a6c1799bd50da284ba
parent6a208fccd3cc6ecf1838acda03bc9f7723b4ed9c
Keep standard INNER joins above possible OUTERs

We always join metabib.record_attr, and we always use an INNER join
to the core table, so keep that join first.  Likewise with the join
to biblio.record_entry.  Dynamic joins may be OUTER, though, and while
join reordering in Postgres is smart, let's not give it the chance to
fail.

Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm