Re: pg_restore must failure on attempt

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Cc: artdias90 <artdias90(at)yahoo(dot)com(dot)br>
Subject: Re: pg_restore must failure on attempt
Date: 2011-09-14 03:00:29
Message-ID: 201109132000.29766.adrian.klaver@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tuesday, September 13, 2011 7:57:44 am artdias90 wrote:
> As I try to restore my data, I get the warning message:
>
> pg_restore: [archiver] input file does not appear to be a valid archive
> (too short?)
>
>
> Ok, but the job ends with green status, I want it to finish with error. Is
> there any way of using $? there?

First guess is you are using pg_restore to restore a text based dump file. If
the database dump is in text format you will need to use psql.
>
> --

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Craig Ringer 2011-09-14 04:20:53 Re: Problem with the 9.1 one-click installer Windows7 64bit
Previous Message Andy Colson 2011-09-14 02:56:13 Re: PostgreSQL benchmarked on XFS vs ZFS vs btrfs vs ext4