Is this an IS-NOT-DISTINCT-join qual list (as opposed the an equijoin)? * * XXX We perform an abbreviated test based on the assumptions that * these are the only possibilities and that all conjuncts are * alike in this regard. */
| 1810 | * alike in this regard. |
| 1811 | */ |
| 1812 | static bool |
| 1813 | isNotDistinctJoin(List *qualList) |
| 1814 | { |
| 1815 | ListCell *lc; |
| 1816 | |
| 1817 | foreach(lc, qualList) |
| 1818 | { |
| 1819 | BoolExpr *bex = (BoolExpr *) lfirst(lc); |
| 1820 | DistinctExpr *dex; |
| 1821 | |
| 1822 | if (IsA(bex, BoolExpr) &&bex->boolop == NOT_EXPR) |
| 1823 | { |
| 1824 | dex = (DistinctExpr *) linitial(bex->args); |
| 1825 | |
| 1826 | if (IsA(dex, DistinctExpr)) |
| 1827 | return true; /* We assume the rest follow suit! */ |
| 1828 | } |
| 1829 | } |
| 1830 | return false; |
| 1831 | } |
| 1832 | #endif |
| 1833 | |
| 1834 | static void |
no test coverage detected