Export and import table dump (.sql) using pgAdmin Export and import table dump (.sql) using pgAdmin postgresql postgresql

Export and import table dump (.sql) using pgAdmin


  1. In pgAdmin, select the required target schema in object tree (databases ->your_db_name -> schemas -> your_target_schema)
  2. Click on Plugins/PSQL Console (in top-bar)
  3. Write \i /path/to/yourfile.sql
  4. Press enter


An another way, you can do it easily with CMD on Windows

Put your installed version (mine is 11).

cd C:\Program Files\PostgreSQL\11\bin\

and run simple query

psql -U <postgre_username> -d <db_name> < <C:\path\data_dump.sql>

enter password then wait the final console message.


Using PgAdminstep 1:select schema and right click and go to Backup..enter image description here

step 2:Give the file name and click the backup button.

enter image description here

step 3:In detail message copy the backup file path.

enter image description here

step 4:

Go to other schema and right click and go to Restore. (see step 1)

step 5:

In popup menu paste aboved file path to filename category and click Restore button.

enter image description here