Transfer data between databases with PostgreSQL

前端 未结 9 1528
我寻月下人不归
我寻月下人不归 2020-12-22 17:51

I need to transfer some data from another database. The old database is called paw1.moviesDB and the new database is paw1. The schema of each table are the following.

<
9条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-22 18:03

    There are three options for copying it if this is a one off:

    1. Use a db_link (I think it is still in contrib)
    2. Have the application do the work.
    3. Export/import

    If this is an ongoing need, the answers are:

    1. Change to schemas in the same DB
    2. db_link

提交回复
热议问题