Postgres: Best way to move data from public schema of one DB to new schema of another DB
问题 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 ? 回答1: The simplest way to do that is to rename schemas. However you must be sure you are a