pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Questions on use
Date: Wed, 28 Dec 2016 12:30:51 -0800
Message-ID: <6aa1f31f-5c7a-9fde-b7ce-024a79779f88@hogranch.com> (raw)
In-Reply-To: <alpine.LNX.2.11.1612281152330.2025@localhost>
References: <alpine.LNX.2.11.1612280729040.30065@localhost>
	<CAKFQuwauXz=yMLifau5xkxncy9Zy77nq6d_-xB_7B8PH=67Wdw@mail.gmail.com>
	<alpine.LNX.2.11.1612280841430.30065@localhost>
	<51538255-cd71-41f3-3b98-c16d252c2f3f@hogranch.com>
	<alpine.LNX.2.11.1612281038430.2025@localhost>
	<9b5bf55a-85be-e6b0-71d1-6579ea76891e@hogranch.com>
	<alpine.LNX.2.11.1612281152330.2025@localhost>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

On 12/28/2016 11:55 AM, Rich Shepard wrote:
> On Wed, 28 Dec 2016, John R Pierce wrote:
>
>> with psql, no -h and -h localhost are two different connection types. if
>> you don't specify a -h, it uses a 'unix domain socket',
>
>   Thanks, John. I believe that I understand the differences. Here,
> /var/lib/pgsql/9.6/data/pg_hba.conf contains:
>
> # IPv4 local connections:
> host    all             rshepard        192.168.55.0/24 trust
> hostnossl all           rshepard        192.168.55.0/24 trust

I would never 'trust' a whole LAN subnet, I generally use md5 password 
authentication over a LAN.     if these java processes are running on 
the same host as the database server, you probably want to allow 
connections from localhost (127.0.0.1 and ::1), frankly, I usually don't 
even like to use 'trust' on localhost.



-- 
john r pierce, recycling bits in santa cruz

view thread (10+ messages)  latest in thread

Message-ID: <6aa1f31f-5c7a-9fde-b7ce-024a79779f88@hogranch.com>
Permalink:  ../6aa1f31f-5c7a-9fde-b7ce-024a79779f88@hogranch.com/
Also on:    postgresql.org/message-id/6aa1f31f-5c7a-9fde-b7ce-024a79779f88@hogranch.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-jdbc@postgresql.org
  Cc: pierce@hogranch.com
  Subject: Re: Questions on use
  In-Reply-To: <6aa1f31f-5c7a-9fde-b7ce-024a79779f88@hogranch.com>
  References: <alpine.LNX.2.11.1612280729040.30065@localhost> <CAKFQuwauXz=yMLifau5xkxncy9Zy77nq6d_-xB_7B8PH=67Wdw@mail.gmail.com> <alpine.LNX.2.11.1612280841430.30065@localhost> <51538255-cd71-41f3-3b98-c16d252c2f3f@hogranch.com> <alpine.LNX.2.11.1612281038430.2025@localhost> <9b5bf55a-85be-e6b0-71d1-6579ea76891e@hogranch.com> <alpine.LNX.2.11.1612281152330.2025@localhost> <6aa1f31f-5c7a-9fde-b7ce-024a79779f88@hogranch.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