Unix Technical Forum

Unable to restore compressed file.

This is a discussion on Unable to restore compressed file. within the pgsql Admins forums, part of the PostgreSQL category; --> I used pg_dump -u -F c -f E:\Temp\Test.tar.gz TestDB to backup. Then, I dropped and recreated TestDB. However, I ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 06:33 AM
Tan Chen Yee
 
Posts: n/a
Default Unable to restore compressed file.

I used pg_dump -u -F c -f E:\Temp\Test.tar.gz TestDB to backup. Then, I
dropped and recreated TestDB.

However, I failed to restore with this command pg_restore -u -F c -d TestDB
E:\Temp\Test.tar.gz.



Here is what I got :



pg_restore: [archiver (db)] connection to database "TestDB" failed: FATAL:
password authentication failed for user "postgres"



I don't understand why the password is invalid. I am sure I used that
password to create backup as well.



How should I restore the gz file ?



Thanks !



Tan


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 06:33 AM
Guido Barosio
 
Posts: n/a
Default Re: Unable to restore compressed file.

Hi,

I wasn't sure, but checking the documentation I've found that both
pg_dump and pg_restore don't allow the "-u" switch, but yes "-U <username"
case.

Check (for pgsql 8):
http://www.postgresql.org/docs/8.0/i...pp-pgdump.html
http://www.postgresql.org/docs/8.0/i...pgrestore.html

Best regards,
Guido

On 12/8/05, Tan Chen Yee <tancy@gussmanntech.com> wrote:
>
> I used pg_dump -u -F c -f E:\Temp\Test.tar.gz TestDB to backup. Then, I
> dropped and recreated TestDB.
>
> However, I failed to restore with this command pg_restore -u -F c -d
> TestDB E:\Temp\Test.tar.gz.
>
>
>
> Here is what I got :
>
>
>
> pg_restore: [archiver (db)] connection to database "TestDB" failed:
> FATAL: password authentication failed for user "postgres"
>
>
>
> I don't understand why the password is invalid. I am sure I used that
> password to create backup as well.
>
>
>
> How should I restore the gz file ?
>
>
>
> Thanks !
>
>
>
> Tan
>




--
"Adopting the position that you are smarter than an automaticoptimization
algorithm is generally a good way to achieve lessperformance, not more" -
Tom Lane.

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 08:39 PM.


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