Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bXChN-0008Re-Rq for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Aug 2016 19:28:26 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bXChN-0007xY-ED for pgsql-bugs@arkaria.postgresql.org; Tue, 09 Aug 2016 19:28:25 +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 1bXCgj-0007EE-H8 for pgsql-bugs@postgresql.org; Tue, 09 Aug 2016 19:27:45 +0000 Received: from mail-qt0-x231.google.com ([2607:f8b0:400d:c0d::231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bXCgf-0003Q5-PC for pgsql-bugs@postgresql.org; Tue, 09 Aug 2016 19:27:44 +0000 Received: by mail-qt0-x231.google.com with SMTP id w38so10710418qtb.0 for ; Tue, 09 Aug 2016 12:27:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=tRjOey+C4xTHJA0I8/fOrjgP2F8mVlK3E1m461pJU5c=; b=hJLyKIYiCuSBWrs3E2G1X92iIU4BYizfwFPKSbL0uU7O/kOF0Iy+V7OZmNgZK7jvvc 1txyVYy4KLuGm2g46b3oFZTPjmo54+ARUGxp/wSRv+kok8k0D1p7rNP1iaXIlywD1IiO NgrwgZJchuUM/qJuIj/6DF82CIwKIVWigapp8nR0YCXxByblZgxxlFByQvEzwIc5215h HrweWUFmAVIcKavjn4p0HSxhK3MQTceogcopYpXTOCmCLByW+l+lfrrFggHCnpNenc2E 56TubV+py3lv8p614mJzt3kC2BoCFg8jLIrHc97Phdf+cwtnvEIz2r8eAhzgMq1EnJPt eWlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=tRjOey+C4xTHJA0I8/fOrjgP2F8mVlK3E1m461pJU5c=; b=NAXE2Lb45eawKODiUMbsNhhQsipBSoH+v9w6KwDIBIn8t4sdGklcHrmgTT3b7wgsTs lWm3009Ahj92krBHXuSEcH11umA2qVCFJEyTgRlZ6x6FmYlhNDbNBJBXyMqlZXgIfxWt 7J1zi72nHyG97q7TphgTSx9zvQxK5aywoKn2nxlU4+VLS/6zOG23xKxOnNYraBi9vZ7M qVQv1a8VygttLkuqGkNjf3YNdLBwL2pIVbyINE+OOYzMaJm7M2xJ8Gxq/HMFTtZ9nDlP K02+/grDwJad6hwi6d9FqPgv2f2W/oswMXHI6dmHqKHYoORm8SLC0fs5/3jInxXcTUoi Kbig== X-Gm-Message-State: AEkoouuuhcOV5MXKYzYGLZpSWz2oQzMad+ucpRkgKT1sIhemMMR1RXhEeYAUK9pGXWNLOn9LaDre2ey4nGON9XIF0rSDmKYAPbfsAd18PllBGapoUT6kwXb4Nnc4BwqIyoREDiI/gpgoG51lZpc0zIyqhXfDwfDHzShymbp8JqhPGKdWU88PkPJBtWhxozk9 X-Received: by 10.200.51.173 with SMTP id c42mr73347qtb.14.1470770859357; Tue, 09 Aug 2016 12:27:39 -0700 (PDT) Received: from alderaan.marques ([181.88.239.74]) by smtp.googlemail.com with ESMTPSA id x42sm21220007qtc.29.2016.08.09.12.27.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Aug 2016 12:27:38 -0700 (PDT) Subject: Re: pg_dump doesn't dump new objects created in schemas from extensions To: Tom Lane References: <409fe594-f4cc-89f5-c0d2-0a921987a864@2ndquadrant.com> <20160616185547.GA72247@alvherre.pgsql> <24a4d9cf-025d-d855-fe76-3af3f878174d@2ndquadrant.com> <29478.1466605967@sss.pgh.pa.us> <20160622145349.GK21416@tamriel.snowman.net> <30842.1466608326@sss.pgh.pa.us> <4193.1466616102@sss.pgh.pa.us> Cc: Stephen Frost , Michael Paquier , Alvaro Herrera , PostgreSQL mailing lists From: =?UTF-8?Q?Mart=c3=adn_Marqu=c3=a9s?= Message-ID: <36a1111f-58b9-bec8-fb18-c862ca6fe285@2ndquadrant.com> Date: Tue, 9 Aug 2016 16:27:28 -0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <4193.1466616102@sss.pgh.pa.us> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Hi, couldn't find a committed patch to fix this. Did I miss it in the pile of logs? El 22/06/16 a las 14:21, Tom Lane escribió: > >>> So maybe just moving the checkExtensionMembership call to after the other >>> stuff would be enough in HEAD? > >> Looking into older versions as well I can't see how placing >> checkExtensionMembership at the end of selectDumpableNamespace would >> help. (like-wise for other selectDumpable's) > > The fix in HEAD will necessarily look quite a bit different from > the back branches, I fear. But the idea I had in mind there was that > we'd calculate a namespace's dump and dump_contains flags as if it > were not an extension member, and then allow checkExtensionMembership > to overwrite the dump flags if it is a member. Since > checkExtensionMembership doesn't touch the dump_contains flags, that > would leave all the flags in the desired state. Was drifted away but can make some time now to add a proper test for this and a fix around Tom's thoughts. Regards, -- Martín Marqués http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs