> -----Original Message-----
> From: pgadmin-support-owner@postgresql.org
> [mailto:pgadmin-support-owner@postgresql.org] On Behalf Of Sim Zacks
> Sent: 25 September 2006 06:51
> To: pgadmin-support@postgresql.org
> Subject: Re: [pgadmin-support] bug report
>
> > The design is intended to allow you to modify options and
> try again, or
> > to cancel the whole operation. I'm not sure how that's any different
> > from any of the other dialogues - click the OK button and
> an attempt is
> > made to create an object for example - if an error occurs
> you can change
> > options and try OK again, or hit Cancel to abort.
>
> The difference is when there are only warnings, that means the restore
> was completed. If you click OK then it will try to restore it again
> over the restore that you already did, which will either completely
> fail, causing confusion as to exactly what happened or somehow import
> again causing untold grief.
We don't know whether there have been errors or warnings though - we
rely on the return value from pg_restore to tell us if the restore has
been successful or not. I'm not even sure if we can grep the output for
'ERROR' because that may be localised.
Regards, Dave