pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guido Barosio <gbarosio@gmail.com>
To: Tan Chen Yee <tancy@gussmanntech.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Unable to restore compressed file.
Date: Thu, 8 Dec 2005 09:23:02 +0000
Message-ID: <f7f6b4c70512080123m6be3f21ewb69ce9cf659ede4a@mail.gmail.com> (raw)
In-Reply-To: <20051208032402.EF65B9DCB0A@postgresql.org>
References: <20051208032402.EF65B9DCB0A@postgresql.org>

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/interactive/app-pgdump.html
    http://www.postgresql.org/docs/8.0/interactive/app-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.

view thread (2+ messages)

Message-ID: <f7f6b4c70512080123m6be3f21ewb69ce9cf659ede4a@mail.gmail.com>
Permalink:  ../f7f6b4c70512080123m6be3f21ewb69ce9cf659ede4a@mail.gmail.com/
Also on:    postgresql.org/message-id/f7f6b4c70512080123m6be3f21ewb69ce9cf659ede4a@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: gbarosio@gmail.com, tancy@gussmanntech.com
  Subject: Re: Unable to restore compressed file.
  In-Reply-To: <f7f6b4c70512080123m6be3f21ewb69ce9cf659ede4a@mail.gmail.com>
  References: <20051208032402.EF65B9DCB0A@postgresql.org> <f7f6b4c70512080123m6be3f21ewb69ce9cf659ede4a@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox