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 1enDQt-0008Ul-FR for pgsql-general@arkaria.postgresql.org; Sun, 18 Feb 2018 01:06:23 +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 1enDQr-00005c-CU for pgsql-general@arkaria.postgresql.org; Sun, 18 Feb 2018 01:06:21 +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 1enDQr-000056-57 for pgsql-general@lists.postgresql.org; Sun, 18 Feb 2018 01:06:21 +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 1enDQn-0003DY-W2 for pgsql-general@postgresql.org; Sun, 18 Feb 2018 01:06:20 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 30EE820BA3; Sat, 17 Feb 2018 20:06:16 -0500 (EST) Received: from frontend2 ([10.202.2.161]) by compute6.internal (MEProxy); Sat, 17 Feb 2018 20:06:16 -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=ti8m4dfpfeScCcfgdvcMLxf4jCArR agm6nGfiT+IbaU=; b=K1Hm4XhJqWyJy0jwLjqkucfUHpfZw3rTv9rQgyFJcPPvc orl6GHcmH4odkpHWUeFQUAyTg5k+jeJnallMrDLlwoXpH0tVQcdFbyz3g3F+KScO xZ7QPE2QUpwBbXbLz8eSyDSuq+Gql+OxJo23gDdyTTskf9weXA+BGU5kl5RL7yhK GC4bNL+ixEyCEYpVbxTddMM7Xq5KYsPV2znnmhaW4dfTaOex3dtMy+v5r2jiGH59 YawYzpJJlrQ7glc4Tg61lXDJVf+N7YMIklv1wdnutalLviJ7BsvHChl+K2VjwrdX qDeH5cG2wZUXUzXf1/W6IKtnSfThoIhJahJIGJuSA== 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=ti8m4d fpfeScCcfgdvcMLxf4jCArRagm6nGfiT+IbaU=; b=EudF9jyZhq++0k5BzM2JTB /2FgzqNz4HofPxc6eITJxBK20SfzhWPBvdYlq+6lIly2JnK2LXQqR/QdL6aivQrU 8ZodPNan4AQCHep03Pr/NYCGB1pkv29CsKCyOxbfYUW/cqal1yw7Qy1fg5NvjPYU 0cSnJimRDs/BLNrwjqEU4SrSI6/TbXIibmgdy16TPTIXITz6KqoTds9s8Eg9Nady qEMMuQ01eldAYvQaneEGfOQeOy6UaqWRRIKqr2Be9jtz8Xw8H1YxKHvz96ZwWPOl kmo/jwi1yVZX7vRwX3qmwpDe32EEteNe/e/bAfunHLDKWG1/Cb2QriBV3329V4kw == 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 A58BC24547; Sat, 17 Feb 2018 20:06:15 -0500 (EST) Subject: Re: Need to fix one more glitch in upgrade to -10.2 To: Rich Shepard , pgsql-general@postgresql.org References: From: Adrian Klaver Message-ID: Date: Sat, 17 Feb 2018 17:06:14 -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/17/2018 04:44 PM, Rich Shepard wrote: > On Sat, 17 Feb 2018, Adrian Klaver wrote: > >> From a previous post: >> >> POSTGRES=/usr/lib${LIBDIRSUFFIX}/@PRGNAM@/$PG_VERSION/bin/postgres >> >> From here: >> >> http://slackbuilds.org/slackbuilds/14.1/system/postgresql/postgresql.SlackBuild >> > >   The desktop runs 32-bit 14.2. > >> You could also try using pg_ctl to start the server directly: > >   postgres@salmo:~$ pg_ctl start -D /var/lib/pgsql/10.2/data/ waiting > for server to start....2018-02-17 16:43:18.344 PST [6761] LOG: > listening on IPv4 address "127.0.0.1", port 5432 > 2018-02-17 16:43:18.368 PST [6761] LOG:  listening on Unix socket > "/tmp/.s.PGSQL.5432" > 2018-02-17 16:43:18.454 PST [6762] LOG:  database system was shut down > at 2018-02-17 15:53:32 PST > 2018-02-17 16:43:18.487 PST [6761] LOG:  database system is ready to > accept connections >  done > server started > postgres@salmo:~$ 2018-02-17 16:43:29.899 PST [6774] FATAL:  role > "rshepard" does not exist > 2018-02-17 16:43:31.669 PST [6776] FATAL:  role "rshepard" does not exist > >   So I guess I need to re-learn how to set roles and set one for me for > all > databases I own. That's tomorrow morning. Will report results after doing > that. If it was in the 9.6 cluster it should be in the 10 cluster. I would log into the postgres db as postgres via psql and do \du. If the roles are not there then: 1) If the 9.6 cluster can be started then do pg_dumpall -g to get the roles and other globals. Then feed that to the 10 cluster. 2) If the 9.6 cluster is not available then pull the roles out of: pg_dumpall -c -f .sql' As to starting, borrowing from the rc.postgresql script: PG_VERSION=10.2 PG_PORT=5432 /etc/rc.d/rc.postgresql start > > Thanks, Adrian, > > Rich > > -- Adrian Klaver adrian.klaver@aklaver.com