Pgadmin 4 pg_restore: [archiver] input file appears to be a text format dump. Please use psql

Maha Dev picture Maha Dev · Feb 1, 2019 · Viewed 6.9k times · Source

Hi I am using Postgres 11 and pgadmin 4.1. I have a SQL file i am trying to import in my newly created database in pgadmin 4.

I know its a generalized error but I tried my best to resolve it, but not working for me.

Here is the error:

enter image description here

Here are a few SQL file lines.

enter image description here

Answer

Laurenz Albe picture Laurenz Albe · Feb 1, 2019

Since this plain format dump does not contain any backslash commands, which could only be interpreted by psql, you can simply run it with pgAdmin's query tool while being connected with the destination database as superuser.