Полное внешнее присоединение Postgres
select t1.col, t2.col
from t1 full outer join t2
on t1.prmky = t2.prmky
Tired Tern
select t1.col, t2.col
from t1 full outer join t2
on t1.prmky = t2.prmky