Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bFWao-00037O-9E for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Jun 2016 01:04:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bFWan-0008Ic-Ng for pgsql-bugs@arkaria.postgresql.org; Wed, 22 Jun 2016 01:04:33 +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 1bFWa9-0007b9-Mo for pgsql-bugs@postgresql.org; Wed, 22 Jun 2016 01:03:53 +0000 Received: from mail-qk0-x231.google.com ([2607:f8b0:400d:c09::231]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bFWa5-0000K0-UA for pgsql-bugs@postgresql.org; Wed, 22 Jun 2016 01:03:52 +0000 Received: by mail-qk0-x231.google.com with SMTP id p10so45628252qke.3 for ; Tue, 21 Jun 2016 18:03:49 -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=d1LQjX273tjRDzH7uNSHVM4XCu3ugbI2M8tNnezwTb4=; b=QvzA1FTkIt3RUrzc7v6bzQUQc/q7WFRpslcU2sg9mNRJ1a3DwFMYfImjgZXUawI5mg AA/VpeayfJmujdFMHmvJ0n9pZrkifE7nrCd5wVvrU1rzYygK6yWYDckFa9b1t/KzYQ9k gBPzp4v/B8SSYeX0oGbOLrdQ83iqHYDE4aLf7nkN939GLAhyUxIjfjkUkezGTVflmZfm z/afBviPyUOBYfL/AVFtmBx66cqpmyIuErX2ibPuazc+p944hPBPXQWLQRidICer2vgr oLTxLPIwlF7gMSXdy07Yer5jb2RNw/RTvp8AdzqUAga/i6j2S1ihGo6jQ4wVhRHG5jBA 0Ehw== 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=d1LQjX273tjRDzH7uNSHVM4XCu3ugbI2M8tNnezwTb4=; b=dsPBQeQY7qzIvm4o7589xhNsUAbWTCxp93P7np4J6k0F9eArJfGawt1acUSTEKHFZi 3Mcf3X9fQk97CcKhFPd7kNi0J899GKp5JSm7I+CsH0qVlzZQ4D6e69143LKFjvXhpha6 X1GBq+SxVv2T05engh13pDkdLo8fJInR4bULkxQht1KQX9L9Kpyj27i9pG6P8L8nVZ2W xZlKVlrbcCRxdfWmh1cIpOdJdErYpmlXDU+hAgUeHNsPIwx+c8qygoIQFZxzaKqbSedr bJOHI9ASrvK0Z6JdhAmStJpEZ2jEJcDaODm9U3bC1NEChyfTLEMQuvG1hDisi1wVgTki Yvgw== X-Gm-Message-State: ALyK8tKqCTcLO+E2N2SWuufatsasUOacQELrhhioOGb1TpY8k5V7Q/w0petH6fqUYV4l4Y8PdE/mH/Bsi2wGbiTEm8sfEfsMua25bmURd3W2fIuOXvyL/9Z4bDLFu85oTgLJtDtlJv1x5jsjJAWeK45PWDypejIHifyKU4iZ5LsIlMAY8KGAsQqkcReeO1b2 X-Received: by 10.200.52.72 with SMTP id v8mr32926300qtb.21.1466557428235; Tue, 21 Jun 2016 18:03:48 -0700 (PDT) Received: from alderaan.marques ([181.91.209.212]) by smtp.googlemail.com with ESMTPSA id a42sm7471101qka.10.2016.06.21.18.03.46 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 21 Jun 2016 18:03:47 -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> <24a4d9cf-025d-d855-fe76-3af3f878174d@2ndquadrant.com> Cc: Alvaro Herrera , PostgreSQL mailing lists From: =?UTF-8?Q?Mart=c3=adn_Marqu=c3=a9s?= Message-ID: Date: Tue, 21 Jun 2016 22:03:40 -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 20:31, Michael Paquier escribió: > On Sat, Jun 18, 2016 at 2:21 AM, Martín Marqués wrote: >> >> If there are no complains, I could apply similar changes on other >> objects for a more complete patch. >> >> Thoughts, objections? > > Tests, and refactoring. > > As this is going to be heavily duplicated, you may want to use a > different routine for this check. Yes, that was my initial thought. > Integrating some tests with a dummy > extension that creates a schema would also be a good idea as this is > likely going to modify many code paths. So I think that we should have > something stored in src/test/modules that gets installed when running > make check in src/bin/pg_dump, and then one of the TAP scripts in t/ > creates a bunch of objects on the schema created by the extension. AFAICS there's a test_pg_dump module in src/test/modules which is there to test pg_dump with extensions. I think that might be the best place to have these tests. 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