Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFn2T-00067D-57 for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Jun 2016 18:38: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 1bFn2S-0006R0-Jv for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Jun 2016 18:38:12 +0000 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 1bFn2R-0006M2-Ba for pgsql-bugs@postgresql.org; Wed, 22 Jun 2016 18:38:11 +0000 Received: from mail-qk0-x233.google.com ([2607:f8b0:400d:c09::233]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bFn2O-0006wN-AZ for pgsql-bugs@postgresql.org; Wed, 22 Jun 2016 18:38:10 +0000 Received: by mail-qk0-x233.google.com with SMTP id a186so77289122qkf.0 for ; Wed, 22 Jun 2016 11:38:07 -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=HlJkBXbzl8z6IZYD/V7nC5EsgimplNqDktNsFSPfl+s=; b=HJqPA2NEiRNpsKinQJmAQNs4ql1MGsbGXw5/tDF15et9rXkZDA+xjIJJYZfk+5vEmR pqxuv/eLPOdK36bi4YtsgxLF5m3VLEWNTh6ELGvqTmi8PoLr78XnY+2woI5e/8ojpet8 sST6YbEckx0YpdE/cQDlVFNOJBzY4oJhRLt3MsgfPaR5Eglq70woXLO8zS5vakbU2bJj V7Wwa+gvEitfRBTIcAr16F8knSpNijwBVEZmuDsoxjd/6eXhlIQnhYu1vZ8+NCL/E3Et CcYryHW1+I2RFCiaW+8NQBAHtsMpRjU8vaCqcSGjvQNPUtMoSTP3f8rqesdNwhI+h3Ei 26qQ== 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=HlJkBXbzl8z6IZYD/V7nC5EsgimplNqDktNsFSPfl+s=; b=bzGGnicyNRPn6AvM1HCTLZh+LhD8cs0BeQ4Yro2sncmKTzHwhlPEGyTEGpdty2UZiv RVpNViRl+pv1bkYnoDLQr+WOtUjByf6dF7Qfh9ae6ZR0yBN20RBncW8emKTDT6PK0LN0 UKqZKxPu/foxXJqiQ04wxgjAeFVNlSo2p96SJ1bJy/LGtpI7WR8r4Gi1ER42MT3ygNwk p4uj6olhqQxRR63QgmU1A7C+W61GRV4DP8J5x0P+0XoOOCavZIsgKD0uc5FmXgRTk8ln 3Itl1QGqgYM17abBw99s381g4YUi7HSTW0tZJszkPLJObwLM6094ziu2eeZRezHUfocS lDJQ== X-Gm-Message-State: ALyK8tKZeCKOUzioUgStupE5cCq5vJhjSbRxJgxeNtlAc2GM345fV5tqYNOo0rsc1Uk9ZnyfXSxrSXhSoIc4IEsWcKURyWgwZhCyNyturwvU7sxWsvE1WRe1Otx10RFCP0jKjHOyQMWMLljAWmnXaHrYY2hbNQtuGOFu5buAclFIi0PdHNcxrE9sD3wdS9an X-Received: by 10.237.41.134 with SMTP id o6mr28666661qtd.12.1466620687154; Wed, 22 Jun 2016 11:38:07 -0700 (PDT) Received: from alderaan.marques ([181.91.209.212]) by smtp.googlemail.com with ESMTPSA id a42sm580187qka.10.2016.06.22.11.38.05 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 22 Jun 2016 11:38:06 -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: <621b0bd6-8dd9-1aa0-6ac6-c6b73d05ade9@2ndquadrant.com> Date: Wed, 22 Jun 2016 15:37:58 -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 El 22/06/16 a las 14:21, Tom Lane escribió: > >> 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. Oh, that's very reasonable. I wonder how that would look on version < 9.6. Will have a look at it on HEAD and 9.5 (I guess changes back to 9.2 or 9.1 should be fairly similar, but I'll verify) -- 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