explain
In your case, the query planner should always be able to understand this. But sometimes it’s not always that simple.
If you really want to know how the request will be executed, enter explainbefore the request:
explain SELECT * FROM t2 JOIN t1 USING (id);
, "" .