Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XwYZ9-0004YX-98 for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Dec 2014 15:43:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XwYZ8-00089X-QI for pgsql-bugs@arkaria.postgresql.org; Thu, 04 Dec 2014 15:43:38 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XwYZ8-00089R-50 for pgsql-bugs@postgresql.org; Thu, 04 Dec 2014 15:43:38 +0000 Received: from mwork.nabble.com ([162.253.133.43]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XwYZ4-0002ot-Oj for pgsql-bugs@postgresql.org; Thu, 04 Dec 2014 15:43:36 +0000 Received: from msam.nabble.com (unknown [162.253.133.85]) by mwork.nabble.com (Postfix) with ESMTP id CD2DBC9D2DF for ; Thu, 4 Dec 2014 07:43:34 -0800 (PST) Date: Thu, 4 Dec 2014 08:43:33 -0700 (MST) From: David G Johnston To: pgsql-bugs@postgresql.org Message-ID: <1417707813381-5829253.post@n5.nabble.com> In-Reply-To: References: <20141203233144.2573.78561@wrigleys.postgresql.org> Subject: Re: BUG #12129: questions on exporting data from a database MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -0.3 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Matheus de Oliveira wrote > On Wed, Dec 3, 2014 at 9:31 PM, < > rseshadr@ > > wrote: > >> C:\Program Files (x86)\pgAdmin III\1.18\pg_dump.exe --host 172.29.131.1 >> --port 5432 --username "waverly" --no-password --format tar --verbose >> --file "C:\Users\Niner\Documents\RTAC 3505 BACKUP.backup" "3530" >> > > > That is not a bug at all. It should be reported in -admin list. > > You are given "--no-password" option but your pg_hba.conf is probably not > accepting non-password methods. Just remove this argument and pg_dump will > prompt you for the password in the terminal. Or you can use environment variables or .pgpass or change hba.conf to an authentication mechanism that doesn't require a password. But what you cannot do is specify no-password and expect it to work if a password is required but not otherwise supplied. All that option is documented to do is cause the dump to fast-fail instead prompting a non-existent user for a password. Reading the pg_dump documentation would lead you to consider both the above options and this page on considered environment variables. http://www.postgresql.org/docs/9.2/interactive/libpq-envars.html The hba.conf option is the least preferred, least secure, least standard, and most tricky to implement correctly. Also, I'm wondering why your pg_dump path is inside of pgAdmin... David J. -- View this message in context: http://postgresql.nabble.com/BUG-12129-questions-on-exporting-data-from-a-database-tp5829219p5829253.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs