question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

Bug report

C:\Program Files\PostgreSQL\10\bin\pg_restore.exe --verbose --host=127.0.0.1 --port=5432 --username=postgres --dbname=db_1
Restore started at Mon Aug 13 13:36:02 SGT 2018
pg_restore: [archiver] input file appears to be a text format dump. Please use psql.
Restore finished at Mon Aug 13 13:36:03 SGT 2018
The pipe has been ended
Process exit code: 1

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:5
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

28reactions
mlarchercommented, Apr 13, 2020

why does dbeaver allow a SQL export that it cannot import it if that is just a matter of using psql instead of pg_restore ? Sounds like an easy fix to me !

9reactions
KBSchmidtcommented, Jan 11, 2022

Which then begs the question, what does “Plain” import even do, if it’s not for importing “Plain” sql dumps?

Read more comments on GitHub >

github_iconTop Results From Across the Web

input file appears to be a text format dump. Please use psql
pg_restore : [archiver] input file appears to be a text format dump. Please use psql. by using commad line pg_restore -d db_development postgres_db.dump....
Read more >
How to use psql to restore a text dump? - Bobcares
Using psql is one of the simplest ways to restore a text dump. ... pg_restore: [archiver] input file appears to be a text...
Read more >
input file appears to be a text format dump. Please use psql ...
pg_restore : [archiver] input file appears to be a text format dump. Please use psql. psql -U username -d database_name -f objects.sql Code...
Read more >
How can I restore pg_dump file on vm - DBA Stack Exchange
pg_restore : [archiver] input file appears to be a text format dump. Please use psql. After that I enter the following sudo -i...
Read more >
input file appears to be a text format dump. Please use psql
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...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found