From: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com> |
---|---|
To: | "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Fwd: Logging on without prompt for password |
Date: | 2015-10-20 19:37:41 |
Message-ID: | CAKFQuwZj5KSyfJnBSmYp9MMMiHHXqoqSz_pKYXH=jo5XrRM36A@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
OP decided to stop sending messages to the list....
---------- Forwarded message ----------
From: David G. Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
Date: Tue, Oct 20, 2015 at 3:13 PM
Subject: Re: [ADMIN] Logging on without prompt for password
To: "Rossi, Maria" <maria(dot)rossi(at)jackson(dot)com>
Cc: Glauco Torres <torres(dot)glauco(at)gmail(dot)com>, "scottm(at)openscg(dot)com" <
scottm(at)openscg(dot)com>
On Tue, Oct 20, 2015 at 3:03 PM, Rossi, Maria <maria(dot)rossi(at)jackson(dot)com>
wrote:
> No, am not using pgbouncer
>
> Pg_dumpall is running with in the server
>
> Here’s a portion of my pg_hba.conf
>
> host all bmcap01 127.0.0.1/32
> trust
>
> host all psgdba 127.0.0.1/32
> trust
>
>
>
> I tried this one, this is working: (ye-hey!!)
>
> pg_dumpall -p 40101 -h 127.0.0.1 -U psgdba
>
>
>
You should acquire an understanding of the difference between "host" and
"local" - only the former of which uses TCP/IP addresses and ports.
Once that is done the following will make a bit more sense:
http://www.postgresql.org/docs/9.2/static/libpq-connect.html#LIBPQ-CONNECT-HOST
host
Name of host to connect to. If this begins with a slash, it specifies
Unix-domain communication rather than TCP/IP communication; the value is
the name of the directory in which the socket file is stored. The default
behavior when host is not specified is to connect to a Unix-domain socket
in /tmp (or whatever socket directory was specified when PostgreSQL was
built). On machines without Unix-domain sockets, the default is to connect
to localhost.
Note especially the default behavior on the "Unix-domain" socket system -
which you are using.
David J.
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2015-10-20 19:37:57 | Fwd: Logging on without prompt for password |
Previous Message | David G. Johnston | 2015-10-20 19:37:16 | Fwd: Logging on without prompt for password |