input file appears to be a text format dump. Please use psql

前端 未结 7 1130
星月不相逢
星月不相逢 2020-12-04 09:33

I take backup using

pg_dump db_production > postgres_db.dump

and then I copy it to localhost using scp.

Now when I import on my

7条回答
  •  忘掉有多难
    2020-12-04 10:01

    if you use pg_dump with -Fp to backup in plain text format, use following command:

    cat db.txt | psql dbname
    

    to copy all data to your database with name dbname

提交回复
热议问题