I am new to Postgres and just discovered that I cannot access data of different databases in one SQL query. And also learned the concept of schema in Postgres.
Now, I have two databases
db1 and db2
Both have tables with same name in their public schema.
Now, I want to create a new schema in db1 with name : new_schema
And move data from db2.public to db1.new_schema
What is the easiest way to do this ?