pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@postgresql.org
Subject: Re: Move cluster to new host, upgraded version
Date: Tue, 13 Nov 2018 16:38:07 -0800
Message-ID: <7612d388-2bea-66ed-0bad-7c2ade410899@aklaver.com> (raw)
In-Reply-To: <alpine.LNX.2.20.1811131613140.19445@salmo.appl-ecosys.com>
References: <alpine.LNX.2.20.1811111118250.28051@salmo.appl-ecosys.com>
	<87wopjv2gu.fsf@news-spur.riddles.org.uk>
	<alpine.LNX.2.20.1811111216260.28051@salmo.appl-ecosys.com>
	<38cdd93b-e0be-ca3b-decd-64072356e6ce@aklaver.com>
	<alpine.LNX.2.20.1811111248390.28051@salmo.appl-ecosys.com>
	<alpine.LNX.2.20.1811111252520.28051@salmo.appl-ecosys.com>
	<alpine.LNX.2.20.1811131546150.19445@salmo.appl-ecosys.com>
	<c98dcc01-efb7-5aeb-eeba-f0a8cdbdf481@aklaver.com>
	<alpine.LNX.2.20.1811131613140.19445@salmo.appl-ecosys.com>

On 11/13/18 4:24 PM, Rich Shepard wrote:
> On Tue, 13 Nov 2018, Adrian Klaver wrote:
> 
>> You have two options:
>>
>> 1) The preferred one. Keep the password and create a .pgpass file to 
>> hold the password:
>> https://www.postgresql.org/docs/10/libpq-pgpass.html
> 
> Adrian,
> 
>    That's database-specific if I read the manual page correctly.

No:

" Each of the first four fields can be a literal value, or *, which 
matches anything. "

> 
>> My guess is you had one on the other machine.
> 
>    Nope. I've been running postgres since 1997 and never used a password
> since I'm the only one using the databases.
> 
>> 2) Change your auth method in pg_hba.conf:
>> https://www.postgresql.org/docs/10/client-authentication.html
> 
>    /var/lib/pgsql/11/data/pg_hba.conf has trust as the local authentication

If the record starts with local then that is for socket connections.

If you are connecting to a host e.g -h localhost then you need to look 
at the host records.

> method for all databases. Perhaps I need to restart the server after 
> loading
> the databases. Will try that.
> 
> Thanks,
> 
> Rich
> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (25+ messages)  latest in thread

Message-ID: <7612d388-2bea-66ed-0bad-7c2ade410899@aklaver.com>
Permalink:  ../7612d388-2bea-66ed-0bad-7c2ade410899@aklaver.com/
Also on:    postgresql.org/message-id/7612d388-2bea-66ed-0bad-7c2ade410899@aklaver.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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, rshepard@appl-ecosys.com
  Subject: Re: Move cluster to new host, upgraded version
  In-Reply-To: <7612d388-2bea-66ed-0bad-7c2ade410899@aklaver.com>
  References: <alpine.LNX.2.20.1811111118250.28051@salmo.appl-ecosys.com> <87wopjv2gu.fsf@news-spur.riddles.org.uk> <alpine.LNX.2.20.1811111216260.28051@salmo.appl-ecosys.com> <38cdd93b-e0be-ca3b-decd-64072356e6ce@aklaver.com> <alpine.LNX.2.20.1811111248390.28051@salmo.appl-ecosys.com> <alpine.LNX.2.20.1811111252520.28051@salmo.appl-ecosys.com> <alpine.LNX.2.20.1811131546150.19445@salmo.appl-ecosys.com> <c98dcc01-efb7-5aeb-eeba-f0a8cdbdf481@aklaver.com> <alpine.LNX.2.20.1811131613140.19445@salmo.appl-ecosys.com> <7612d388-2bea-66ed-0bad-7c2ade410899@aklaver.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