Skip site navigation (1) Skip section navigation (2)

Re: pg_restore

From: "Kevin Grittner" <kgrittn(at)mail(dot)com>
To: "Branka Stancic" <brankastancic(at)hotmail(dot)com>,pgsql-bugs(at)postgresql(dot)org
Subject: Re: pg_restore
Date: 2012-12-08 16:40:35
Message-ID: 20121208164035.142820@gmx.com (view raw or flat)
Thread:
Lists: pgsql-bugs
Branka Stancic wrote:

> I using command pg_restore

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

pg_restore is not used for restoring text files; psql is. If you
want to use pg_restore you should use -Fc when you run pg_dump. At
this point, you need to run the script file in through psql. If it
contains steps you don't want to execute, you will need to copy and
edit the file to leave just the portions you want to run.

-Kevin


pgsql-bugs by date

Next:From: Kevin GrittnerDate: 2012-12-08 16:42:41
Subject: Re: BUG #7733: support Retina display in pgAdmin
Previous:From: Kevin GrittnerDate: 2012-12-08 16:29:57
Subject: Re: Installing PG 7.3.4 on Linux 6

Privacy Policy | About PostgreSQL
Copyright © 1996-2013 The PostgreSQL Global Development Group