Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1enSGw-0006MX-DU for pgsql-general@arkaria.postgresql.org; Sun, 18 Feb 2018 16:57:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1enSGv-00035g-6L for pgsql-general@arkaria.postgresql.org; Sun, 18 Feb 2018 16:57:05 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1enSGu-00035V-Da for pgsql-general@lists.postgresql.org; Sun, 18 Feb 2018 16:57:04 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1enSGr-00069l-R2 for pgsql-general@postgresql.org; Sun, 18 Feb 2018 16:57:03 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id E022D20CEA; Sun, 18 Feb 2018 11:56:59 -0500 (EST) Received: from frontend1 ([10.202.2.160]) by compute6.internal (MEProxy); Sun, 18 Feb 2018 11:56:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; bh=PzD+fI0N7pbR4WlEajirKvaPQREky B1QPa0t/TIC/o4=; b=MDGfxINjLwwoFKLODbo/myaQMeJehsLuAlKLbOeIeXcs4 xU7CmOZIh+2j9M1R0OoLr0MSDfUpaWqx9iKZwFMH+WokDJ1nHK4fu1TmqtlO8jKA ucVIjU1Mfm3vgvAGh/iAZSvweUmw0osOamSOoqX2PEw6KOJ6ZJrtHzUHatQpRTno JhArLyMxur2A5dEf8ghuruLkNQTTQjDhUMMTR44a1HhyTrYAPeEFEdsMh4IorUCF afo/N7GJbG97AkZr9ssQRLpiVeroOE63Dudis+mzeA4ppie0XlokICVng6JA9VNi gjOlVh7xRoWFwxzbrF9zXe6ecz0YB+9u2vRkN37dw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=PzD+fI 0N7pbR4WlEajirKvaPQREkyB1QPa0t/TIC/o4=; b=EqVDjujjB1hTmDEAjW6kPr nGePD1OqCDy09iO1XmxZ8mbQ+j9iFfry4zk5RkoWTFUxB+9QC2XvNndygU8Yxzl+ +WVM+EX+DJu1lLtVeYKbSHsq9pM6NLAht86g3OWety6xDnWdYrzdOW0VXViikI6I O14AF0ljuICOQwI9jSUoW9dNeMHlYfMMCND3adPhS5HHgbJoUT7mL599EbAJUjXk ikn+2A7yh87BusJwdb+TQ7NTxMgNua9C8cpK/hBGPvM8REKMuHd5lsV4Lju2/Dps /TXgzzkotKv08dOhIkHIc8NcbjJwfw3qsjLoWTEPN3uoe6SX54embii843Cj5O/g == X-ME-Sender: Received: from [192.168.1.3] (71-212-36-41.tukw.qwest.net [71.212.36.41]) by mail.messagingengine.com (Postfix) with ESMTPA id 5CA627E0DF; Sun, 18 Feb 2018 11:56:59 -0500 (EST) Subject: Re: Need to fix one more glitch in upgrade to -10.2 To: Rich Shepard , pgsql-general@postgresql.org References: <4341ec30-4834-c31d-7cea-24a67497726d@aklaver.com> From: Adrian Klaver Message-ID: <16a758c4-975b-aa0e-2ca9-9b4523bc8f81@aklaver.com> Date: Sun, 18 Feb 2018 08:56:58 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 02/18/2018 08:05 AM, Rich Shepard wrote: > 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? Yes. > >   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 They could not have been removed as they are in the file. I am guessing you are saying they are not in use as far as you know. Just a warning(from experience), memory is a tricky thing and removing what is thought to be inactive roles is a quick way to find they are not. > 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? So can anyone who knows that postgres role is generally always there. If you want to do this at least restrict the user field. > > Regards, > > Rich > > > -- Adrian Klaver adrian.klaver@aklaver.com