pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rich Shepard <rshepard@appl-ecosys.com>
To: pgsql-general@postgresql.org
Subject: Re: Need to fix one more glitch in upgrade to -10.2
Date: Sun, 18 Feb 2018 08:05:51 -0800 (PST)
Message-ID: <alpine.LNX.2.20.1802180757430.10894@salmo.appl-ecosys.com> (raw)
In-Reply-To: <alpine.LNX.2.20.1802171857120.7279@salmo.appl-ecosys.com>
References: <alpine.LNX.2.20.1802171424460.19982@salmo.appl-ecosys.com>
	<b9a2398b-9d62-97fb-2c4e-9b899bba5cd6@aklaver.com>
	<alpine.LNX.2.20.1802171551100.19982@salmo.appl-ecosys.com>
	<ac08305f-d664-4353-23f6-9e71be6babae@aklaver.com>
	<alpine.LNX.2.20.1802171640070.19982@salmo.appl-ecosys.com>
	<4341ec30-4834-c31d-7cea-24a67497726d@aklaver.com>
	<alpine.LNX.2.20.1802171857120.7279@salmo.appl-ecosys.com>

On Sat, 17 Feb 2018, Rich Shepard wrote:

> That's what I was thinking, too. I can remove the 10.2 package, rebuild
> and re-install it. Run initdb, then, as postgres, read in the .sql file.
> This is probably the pragmatic thing to do.

   Rather than doing this my reading of the 10.2 initdb pages suggest that I
can remove /var/lib/pgsql/10.2/data/*, leaving an empty data directory owned
by postgres.postgres. Then, as user postgres, I can run initdb with -D
/full/path/to/data/ and start over. Is this appropriate?

   Looking at the backed up .sql file I see roles for databases that were
removed a long time ago. I'll read the roles section of the 10.2 docs and
edit the .sql file to clean those up.

   Since I'm the only user on this host and postgres cluster would 'trust' be
the appropriate method for use in pb_hba.conf; e.g., 
# "local" is for Unix domain socket connections only
local   all             all                                     trust
# IPv4 local connections:
host    all             all             127.0.0.1/32            trust

so I can access my databases from the desktop or portables without a
password?

Regards,

Rich





view thread (22+ messages)  latest in thread

Message-ID: <alpine.LNX.2.20.1802180757430.10894@salmo.appl-ecosys.com>
Permalink:  ../alpine.LNX.2.20.1802180757430.10894@salmo.appl-ecosys.com/
Also on:    postgresql.org/message-id/alpine.LNX.2.20.1802180757430.10894@salmo.appl-ecosys.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: rshepard@appl-ecosys.com
  Subject: Re: Need to fix one more glitch in upgrade to -10.2
  In-Reply-To: <alpine.LNX.2.20.1802180757430.10894@salmo.appl-ecosys.com>
  References: <alpine.LNX.2.20.1802171424460.19982@salmo.appl-ecosys.com> <b9a2398b-9d62-97fb-2c4e-9b899bba5cd6@aklaver.com> <alpine.LNX.2.20.1802171551100.19982@salmo.appl-ecosys.com> <ac08305f-d664-4353-23f6-9e71be6babae@aklaver.com> <alpine.LNX.2.20.1802171640070.19982@salmo.appl-ecosys.com> <4341ec30-4834-c31d-7cea-24a67497726d@aklaver.com> <alpine.LNX.2.20.1802171857120.7279@salmo.appl-ecosys.com> <alpine.LNX.2.20.1802180757430.10894@salmo.appl-ecosys.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