只写一半是不会断开的
test_en=# explain select * from t1
test_en-# left outer join t2 on t2.id=t1.id and t2.id>100 ;
QUERY PLAN
-------------------------------------------------------------------------------------
Merge Left Join(cost=0.00..7847.75 rows=100000 width=8)
Merge Cond: (t1.id = t2.id)
->Index Only Scan using t1_pkey on t1(cost=0.00..3050.36 rows=100000 width=4)
->Index Only Scan using t2_pkey on t2(cost=0.00..3298.63 rows=99901 width=4)
Index Cond: (id > 100)
(5 行记录)