pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David G Johnston <david.g.johnston@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #12129: questions on exporting data from a database
Date: Thu, 4 Dec 2014 08:43:33 -0700 (MST)
Message-ID: <1417707813381-5829253.post@n5.nabble.com> (raw)
In-Reply-To: <CAJghg4JMspGkJCwUxSeuZ9aZHBXKvhvC7zSAZy4x=jhe+SSG6w@mail.gmail.com>
References: <20141203233144.2573.78561@wrigleys.postgresql.org>
	<CAJghg4JMspGkJCwUxSeuZ9aZHBXKvhvC7zSAZy4x=jhe+SSG6w@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Matheus de Oliveira wrote
> On Wed, Dec 3, 2014 at 9:31 PM, &lt;

> rseshadr@

> &gt; 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...
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



view thread (4+ messages)

Message-ID: <1417707813381-5829253.post@n5.nabble.com>
Permalink:  ../1417707813381-5829253.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1417707813381-5829253.post@n5.nabble.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-bugs@postgresql.org
  Cc: david.g.johnston@gmail.com
  Subject: Re: BUG #12129: questions on exporting data from a database
  In-Reply-To: <1417707813381-5829253.post@n5.nabble.com>
  References: <20141203233144.2573.78561@wrigleys.postgresql.org> <CAJghg4JMspGkJCwUxSeuZ9aZHBXKvhvC7zSAZy4x=jhe+SSG6w@mail.gmail.com> <1417707813381-5829253.post@n5.nabble.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