Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g0F0S-0000qT-6N for pgsql-general@arkaria.postgresql.org; Wed, 12 Sep 2018 23:57:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1g0F0R-0000O8-0K for pgsql-general@arkaria.postgresql.org; Wed, 12 Sep 2018 23:57:11 +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.89) (envelope-from ) id 1g0Ewb-0004CR-BP for pgsql-general@lists.postgresql.org; Wed, 12 Sep 2018 23:53:13 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1g0EwS-0000Zt-9K for pgsql-general@lists.postgresql.org; Wed, 12 Sep 2018 23:53:12 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id A990121AE8; Wed, 12 Sep 2018 19:53:02 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 12 Sep 2018 19:53:02 -0400 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=fm3; bh=qrPoJPoiME3sbcarX4y3g82wfvc1k DH7LAxshbahOh0=; b=1C/VSATgq3ji/hfyQMXYA7ZwkKhMpusM88KwsydvjN/34 S5GQfYl81ZrDETnuF4Z5aqL/eYYS8fdMznIXBlg904JHP5AcK+Wucdhnjn46PWRO c8N/JUkKR55M7BC4A1Pfz1LUZVjNLfx2MYux4y3g4lK78aaaq6i808jRiKoneLQZ vYqsHALSri11SIWcnQPNHIBgQVnG19oGEk3SBq9iB7XuaSTLg6WuIYwEyMB0hnSI zbJ2xvo0pmazKbeqESBWsc+qZLs2kPgdBD/SzFNCInhzJUi3IBY+XVQqJo6ga4KV g9D8CVAiLdP01KVcZw0okq1cwxCD5hdM0t8bDW2Qg== 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=fm3; bh=qrPoJP oiME3sbcarX4y3g82wfvc1kDH7LAxshbahOh0=; b=HwJzLcmQ85FFTrTl3Wim52 oNaoPDIKVwkHTchJSLmaBW9eadEY0XWXwvy0sutORLrY7E+AYvWBmyblFq/2NdQ4 bJNOF7q4SpkUCgiIBxT6fpGtik4Dua30kdrZGlRAHB/EomfBGIUs0uLyuuCqEiYl GNMm4j3i2b8njZiLENcO5sBGbyUkWka/2C5+wFQvW5Zy8aj3hZmDIFviRm4RaVRU MGR4QMrEmaNW/6KeD+Mwp9yMLMngrlQMWH46rZiaQz5jAqBTnexSkXBDhbbQbTvY kOClBtdH6hklqP4uU1DjryoQeiXM9gE/UoTBHLxmFBi4E0VuB/I8OiwdjBgwpfZQ == X-ME-Proxy: X-ME-Sender: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id 0A5AB102A0; Wed, 12 Sep 2018 19:53:01 -0400 (EDT) Subject: Re: PG9.1 migration to PG9.6, dump/restore issues To: Scot Kreienkamp , "pgsql-general@lists.postgresql.org" References: <17082AAFC33A934082836458CB53494374C993BD@MONDB03.na.lzb.hq> <88e20905-8400-1781-9d11-0efe6f60dfef@aklaver.com> <17082AAFC33A934082836458CB53494374C9A5B9@MONDB03.na.lzb.hq> From: Adrian Klaver Message-ID: Date: Wed, 12 Sep 2018 16:53:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: <17082AAFC33A934082836458CB53494374C9A5B9@MONDB03.na.lzb.hq> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/12/18 11:30 AM, Scot Kreienkamp wrote: >> Did you see errors in the restore? >> >> In particular about not finding roles(users) for the permissions? >> >> I ask because I do not see in the above anything about dumping objects >> global to the cluster. That would include roles. I use: >> >> pg_dumpall -g -f globals.sql >> >> See: >> >> https://www.postgresql.org/docs/10/static/app-pg-dumpall.html >> > > Nope, no errors in the restore that I could see. As I as discussing with Tom Lane, the -g switch doesn't bring over schema permissions either. I could use the -s switch and Using pg_dumpall -g is not about permissions it is about transferring the roles that the permissions depend on. To put it another way roles are global to a cluster and permissions are tied to objects in a database. just re-create the databases as empty again after that's applied. That brings over everything except data. > > > Scot Kreienkamp |Senior Systems Engineer | La-Z-Boy Corporate > One La-Z-Boy Drive| Monroe, Michigan 48162 | Office: 734-384-6403 | | Mobile: 7349151444 | Email: Scot.Kreienkamp@la-z-boy.com > > This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you. > -- Adrian Klaver adrian.klaver@aklaver.com