简体   繁体   中英

Heroku postgresql snapshot dump file

Is there a way to import .dump file from Heroku to pgadmin ?

I've tried something like below in SQL editor

pg_restore -c -d virtual b003.dump

but I'm getting

ERROR:  syntax error at or near "pg_restore"
LINE 1: pg_restore -c -d virtual b003.dump
        ^
********** Error **********

ERROR: syntax error at or near "pg_restore"
SQL state: 42601
Character: 1

pg_restore is a command-line tool, not a SQL command. pgAdmin has its own UI for restoring DB dumps

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM