Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bDuGk-0007FW-2w for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Jun 2016 13:57:10 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bDuGj-0000Zt-Ff for pgsql-bugs@arkaria.postgresql.org; Fri, 17 Jun 2016 13:57:09 +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 1bDuG5-0008HM-Vx for pgsql-bugs@postgresql.org; Fri, 17 Jun 2016 13:56:30 +0000 Received: from mail-qk0-x22b.google.com ([2607:f8b0:400d:c09::22b]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bDuFx-0006JA-Vo for pgsql-bugs@postgresql.org; Fri, 17 Jun 2016 13:56:29 +0000 Received: by mail-qk0-x22b.google.com with SMTP id p10so85257354qke.3 for ; Fri, 17 Jun 2016 06:56:21 -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=AS1xTh7I+84wa6ATnmwqeHib/JDv+qfi0Ik7Mk7spMY=; b=CS9zj1RGRDXL+IvSqjGlb6GVhV8h/ZFLWR6f4cMa+UfwpZhrhFxOCiaiUiqOUFyotP vYeKta4ArgNIn7AcLqGyV1C4uZuuYNTuZNBvHMa3R+9qJMAE2OP7nqy1V+5pw3liGQpv 0rT7lBhIGHkuzOQ5T7HsEa8U9IhklPzxkRA7za4bWThQoi+kx9GTbP6cPiAN36ndLa1G IodQZM6OgQ+gMFjPYnKSlekPxWC+Gj32zqFk67oYYY6wU9qRjoc3e1atgxmbEqfhwMKg j0J3PLh/WN1BirVeBfLkZnpDLpJGDUOvPQg+IEMGOWck8r3/13wMd4sWHxW0E6WY5uBY mvVg== 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=AS1xTh7I+84wa6ATnmwqeHib/JDv+qfi0Ik7Mk7spMY=; b=cX8wWwl4Av6081qANhaXZqcSbFc2Pg2KVGeM+zFohHA8No2e8KWsZJgl/9yj5YckHA YC3scfuoHaDYm5DC7kycBCTrlF+0N+xaIzygg0JSBkj99/gQujudCtZJhGaVnBF5uky7 4geoA7aLubuqxl6OinwIz+0WL0g/d2JbmbhsNxcfONE2U18fmm37zhGkx872bjXkKaGt JyqK3UOjg4i/4jGk7KtpWySKVW8dNU3ynKieaDByJXbdiy7u6xCfChDJrlY/tQ3ypKAl Iqk8hWqaplPPymYOcrQMxiq5TUGvUN0VFi+hkj04QMx6IfM092YL171z91gqHiMcTijI FpxQ== X-Gm-Message-State: ALyK8tIJRLiY+N5ccyVBtdLaAZtxAPtfPc7pSekNevzhaYCqo5pBOUuhbpsO/mCDo4jNE9wh5MgsypQgtTb9EL8vWRe35cfnQ2mT1YICDX+oKZiKCkA9hs66vxEi3j/ZzHrGMEixJtNsZpz8SEsyCq2sSp1OHar+Y0YXB2cUUG4OSh8kaKqKzlykk3iwMjCz X-Received: by 10.200.39.237 with SMTP id x42mr2381169qtx.75.1466171780078; Fri, 17 Jun 2016 06:56:20 -0700 (PDT) Received: from alderaan.marques (host53.186-108-166.telecom.net.ar. [186.108.166.53]) by smtp.googlemail.com with ESMTPSA id b33sm8637603qgb.18.2016.06.17.06.56.17 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 17 Jun 2016 06:56:18 -0700 (PDT) Subject: Re: pg_dump doesn't dump new objects created in schemas from extensions To: Michael Paquier References: <409fe594-f4cc-89f5-c0d2-0a921987a864@2ndquadrant.com> <20160616185547.GA72247@alvherre.pgsql> Cc: Alvaro Herrera , PostgreSQL mailing lists From: =?UTF-8?Q?Mart=c3=adn_Marqu=c3=a9s?= Message-ID: Date: Fri, 17 Jun 2016 10:56:16 -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: Content-Type: text/plain; charset=utf-8 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 17/06/16 a las 03:35, Michael Paquier escribió: > On Fri, Jun 17, 2016 at 4:21 AM, Martín Marqués wrote: >> IMO, this assignment: >> >> tbinfo->dobj.dump = tbinfo->dobj.namespace->dobj.dump_contains; >> >> should be replaced by a call to some new function which would be more >> or less a copy of selectDumpableNamespace, but without the >> checkExtensionMembership call. > > Ah, I see. Yes this is definitely wrong. The namespace itself may be > part of an extension but we do not check for it at all. See for > example the patch attached that is giving what I would expect is the > correct behavior. Yes, that's the correct behavior we would normally expect, but not if schema_include_oids.head is not null, or schema_exclude_oids has the oid of the tbinfo->dobj.namespace. 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