Moving a database with pg_dump and psql -U postgres db_name < … results in “ERROR: relation ”table_name“ does not exist”

前端 未结 3 1635
终归单人心
终归单人心 2021-01-30 11:18

I moved my PostgresQL database from one hard drive to another using

pg_dump -U postgres db_name > db_name.dump

and then

psq         


        
3条回答
  •  [愿得一人]
    2021-01-30 12:23

    I encountered this problem. Then I realized that I forgot to install postgis extension.

    Don't forget to install the extensions you use.

提交回复
热议问题