简体   繁体   中英

import large postgresql database

I have 10GB postgresql database dump. I need to import it into pgAdmin III. I tried '\\ic:/sales_history.sql' command but only table is created but table does not have any record.

If you have the dump file. Instead of using '\\i' option you can directly restore the database through pg_admin

  • Right click on database New Database option. Create a new database in which you want to restore the dump.
  • On the newly created database Right click and Restore the the backup defining the role name that should be a superuser for the database.
  • Try restoring the database

In my case it worked with all the objects in the database along with the data .

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