Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciM0D-0007Sy-33 for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Feb 2017 14:10:13 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1ciM0C-00078o-MD for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Feb 2017 14:10:12 +0000 Resent-Date: Mon, 27 Feb 2017 14:10:12 +0000 Resent-Message-Id: Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ciM0B-00077M-9r for pgsql-hackers@postgresql.org; Mon, 27 Feb 2017 14:10:11 +0000 Received: from gauss.credativ.com ([93.94.130.89]) by makus.postgresql.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1ciM02-0003K3-KO for pgsql-hackers@postgresql.org; Mon, 27 Feb 2017 14:10:10 +0000 Received: from gauss.credativ.com (localhost [127.0.0.1]) by gauss.credativ.com (Postfix) with ESMTP id 296531E1A00; Mon, 27 Feb 2017 15:09:35 +0100 (CET) Received: from fock (unknown [46.183.103.8]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: mba@gauss.credativ.com) by gauss.credativ.com (Postfix) with ESMTPSA id 6960B1E19C7 for ; Mon, 27 Feb 2017 15:09:30 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on gauss.credativ.com X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RP_MATCHES_RCVD autolearn=ham version=3.3.1 X-Original-To: mba@mail.credativ.com Received: from klensin.credativ.com (klensin.credativ.com [93.94.130.66]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by gauss.credativ.com (Postfix) with ESMTPS id 8119E1E19C7 for ; Mon, 27 Feb 2017 14:55:13 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by klensin.credativ.com (Postfix) with ESMTP id 3vX3B93TwrzypW for ; Mon, 27 Feb 2017 13:55:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at klensin.credativ.com Received: from klensin.credativ.com ([127.0.0.1]) by localhost (klensin.credativ.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Zw4qiiugvyVZ for ; Mon, 27 Feb 2017 13:55:12 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by klensin.credativ.com (Postfix) with ESMTPS id 3vX3B80YNMzySZ for ; Mon, 27 Feb 2017 13:55:12 +0000 (UTC) Received: from nighthawk.chemicalconnection.dyndns.org ([88.217.108.122]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MSMP5-1cuCHE2r2h-00TWOP; Mon, 27 Feb 2017 14:55:03 +0100 Received: from mbanck by nighthawk.chemicalconnection.dyndns.org with local (Exim 4.84_2) (envelope-from ) id 1ciLlC-00058k-Qz; Mon, 27 Feb 2017 14:54:42 +0100 From: Michael Banck To: Jim Nasby Cc: Peter Eisentraut , Pg Hackers , Kevin Grittner Message-ID: <20170227135442.GD7222@nighthawk.caipicrew.dd-dns.de> References: <87866740-ef55-8a6d-6480-499b92aa23c0@BlueTreble.com> <8f64786e-824d-7c0d-33a6-3d9e1c8e9fde@2ndquadrant.com> <33b25c65-94f1-6ff6-c717-61a56294a255@2ndquadrant.com> <75409fb1-bd96-25c2-f6b0-c24e28ed2684@2ndquadrant.com> <65049c27-96bf-317b-b435-931f6041f94c@BlueTreble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <65049c27-96bf-317b-b435-931f6041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cgbsD THvSa+LNMt6pUTyFhcONQ3qarWfX5HL8KbxJyTXrTSZXvTPD+hX8aqEo1iU= Subject: Re: Change in "policy" on dump ordering? Resent-From: Michael Banck Resent-To: PostgreSQL Development Date: Mon, 27 Feb 2017 15:09:29 +0100 X-Mailer: Evolution 3.12.9-1+b1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org Hi, I've found the (AIUI) previous discussion about this, it's Bug #13907: https://www.postgresql.org/message-id/flat/20160202161407.2778.24659%40wrig= leys.postgresql.org#20160202161407.2778.24659@wrigleys.postgresql.org On Wed, Feb 22, 2017 at 05:24:49PM -0600, Jim Nasby wrote: > On 2/22/17 12:29 PM, Peter Eisentraut wrote: > >On 2/22/17 10:14, Jim Nasby wrote: > >>CREATE MATERIALIZED VIEW tmv AS SELECT * FROM pg_subscription; > >>SELECT 0 > >> > >>IOW, you can create matviews that depend on any other > >>table/view/matview, but right now if the matview includes certain items > >>it will mysteriously end up empty post-restore. > > > >Yes, by that logic matview refresh should always be last. In https://www.postgresql.org/message-id/9af4bc32-7e55-a21d-47e7-608582a8c4= 8d%402ndquadrant.com you (Peter) wrote:=20 "The reason that ACLs are restored last is that they could contain owner self-revokes. So anything that you run after the ACLs could fail because of that. I think a more complete fix would be to split up the ACL restores into the general part, which you would run right after the object is restored, and the owner revokes, which you would run last." =20 > Patches for head attached. FWIW, Keven Grittner had proposed a more involved patch in=20 https://www.postgresql.org/message-id/CACjxUsNmpQDL58zRm3EFS9atqGT8%2BX_2%2= BFOCXpYBwWZw5wgi-A%40mail.gmail.com Michael --=20 Michael Banck Projektleiter / Senior Berater Tel.: +49 2166 9901-171 Fax: +49 2166 9901-100 Email: michael.banck@credativ.de credativ GmbH, HRB M=F6nchengladbach 12080 USt-ID-Nummer: DE204566209 Trompeterallee 108, 41189 M=F6nchengladbach Gesch=E4ftsf=FChrung: Dr. Michael Meskes, J=F6rg Folz, Sascha Heuer --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers