Unix Technical Forum

bug restore window

This is a discussion on bug restore window within the pgsql Interfaces Pgadmin Support forums, part of the PostgreSQL category; --> Version 1.4.0 When you restore a database and there are no problems the Ok button turns into a Done ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Interfaces Pgadmin Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-17-2008, 08:15 PM
Sim Zacks
 
Posts: n/a
Default bug restore window

Version 1.4.0
When you restore a database and there are no problems the Ok button
turns into a Done button. Clicking on this closes the window.
When there are errors or warnings, the OK button stays an ok button
and clicking on it attempts to do the restore again.
To get out of the window you must click cancel.

I would think the button to get out should always get you out. There
is never (as far as I can think of) a time when you would want to run
the restore a second time. Even if there were errors and something has
to be changed, you would want to go out of that window first to fix
the problem.

Thank You
Sim


---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-17-2008, 08:15 PM
Andreas Pflug
 
Posts: n/a
Default Re: bug restore window

Sim Zacks wrote:
> Version 1.4.0
> When you restore a database and there are no problems the Ok button
> turns into a Done button. Clicking on this closes the window.
> When there are errors or warnings, the OK button stays an ok button
> and clicking on it attempts to do the restore again.
> To get out of the window you must click cancel.
>
> I would think the button to get out should always get you out. There
> is never (as far as I can think of) a time when you would want to run
> the restore a second time.


The behaviour is intentional; if the restore failed, you might want to
correct your parameters and try again.
To leave the dialog (any dialog), you always can use Cancel or the close
button. The OK button turns to Done to prevent you from rerunning the
successful restore again.

Regards,
Andreas

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-17-2008, 08:15 PM
Sim Zacks
 
Posts: n/a
Default Re: bug restore window

The problem is that on a successful restore with warnings, the user is
used to clicking the Done button. I have had to drop the database and
restore again a number of times because I was used to clicking the
button and it tried to restore again.
If it completely fails, then I see your point.

Sim
__________________________________________________ ______________________________

Sim Zacks wrote:
> Version 1.4.0
> When you restore a database and there are no problems the Ok button
> turns into a Done button. Clicking on this closes the window.
> When there are errors or warnings, the OK button stays an ok button
> and clicking on it attempts to do the restore again.
> To get out of the window you must click cancel.
>
> I would think the button to get out should always get you out. There
> is never (as far as I can think of) a time when you would want to run
> the restore a second time.


The behaviour is intentional; if the restore failed, you might want to
correct your parameters and try again.
To leave the dialog (any dialog), you always can use Cancel or the close
button. The OK button turns to Done to prevent you from rerunning the
successful restore again.

Regards,
Andreas


---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-17-2008, 08:15 PM
Andreas Pflug
 
Posts: n/a
Default Re: bug restore window

Sim Zacks wrote:
> The problem is that on a successful restore with warnings, the user is
> used to clicking the Done button. I have had to drop the database and
> restore again a number of times because I was used to clicking the
> button and it tried to restore again.
> If it completely fails, then I see your point.


OK, I understand now, it's the warning case. Seems the pg_restore return
code handling needs some tuning.

Regards,
Andreas

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:46 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com