Is there a way to have SQL work in parallelism with two computers?
If you want a solution using plain PostgreSQL, you will have to use sharding, that is, you will have to split the database into parts that you keep on different machines.

You can use PL/Proxy to have a single query run on all machines in parallel.