| From: | Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> |
|---|---|
| To: | Frank Broniewski <brfr(at)metrico(dot)lu> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: .pgpass being ignored |
| Date: | 2013-06-25 13:37:54 |
| Message-ID: | 51C99D32.1070604@gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 06/24/2013 11:36 PM, Frank Broniewski wrote:
>>> However, when I call createdb, it fails:
>>>
>>> $ createdb -h 192.168.1.4 -U postgres --no-password
>>> JobSearch
>>> createdb: could not connect to database postgres:
>>> fe_sendauth: no
>>> password supplied
>>>
>
> Hi,
>
> isn't your --no-password switch preventing this? I never use this switch
> and my .pgpass is used by shell scripts and other programs ...
http://www.postgresql.org/docs/9.2/interactive/app-createdb.html
-w
--no-password
Never issue a password prompt. If the server requires password
authentication and a password is not available by other means such as a
.pgpass file, the connection attempt will fail. This option can be
useful in batch jobs and scripts where no user is present to enter a
password.
>
>
> Frank
>
>
--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Adrian Klaver | 2013-06-25 13:41:33 | Re: pgloader error : permission denied to set parameter "lc_messages" |
| Previous Message | Nicolau Roca | 2013-06-25 13:13:01 | autovacuum: found orphan temp table |