Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cq0P9-0007Nc-Ra for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Mar 2017 16:43:35 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1cq0P9-0000rc-3D for pgsql-hackers@arkaria.postgresql.org; Mon, 20 Mar 2017 16:43:35 +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 1cq0Ne-0006QE-75 for pgsql-hackers@postgresql.org; Mon, 20 Mar 2017 16:42:02 +0000 Received: from tamriel.snowman.net ([72.66.115.51]) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cq0Nb-0002nN-Eo for pgsql-hackers@postgresql.org; Mon, 20 Mar 2017 16:42:01 +0000 Received: by tamriel.snowman.net (Postfix, from userid 1000) id A63F65F794; Mon, 20 Mar 2017 12:40:58 -0400 (EDT) Date: Mon, 20 Mar 2017 12:40:58 -0400 From: Stephen Frost To: Amit Langote Cc: Pg Hackers Subject: Re: pg_dump emits ALTER TABLE ONLY partitioned_table Message-ID: <20170320164058.GT9812@tamriel.snowman.net> References: <7682253a-6f79-6a92-00aa-267c4c412870@lab.ntt.co.jp> <20170217133251.GK9812@tamriel.snowman.net> <2509e5e9-4de2-1846-ddd0-6964f81d6c8b@lab.ntt.co.jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="7155Inxk/SN6GkBE" Content-Disposition: inline In-Reply-To: <2509e5e9-4de2-1846-ddd0-6964f81d6c8b@lab.ntt.co.jp> X-Editor: Vim http://www.vim.org/ X-Info: http://www.snowman.net X-Operating-System: Linux/3.13.0-91-generic (x86_64) X-Uptime: 12:35:01 up 254 days, 17:59, 22 users, load average: 0.33, 0.25, 0.21 User-Agent: Mutt/1.5.21 (2010-09-15) 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 --7155Inxk/SN6GkBE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Amit, * Amit Langote (Langote_Amit_f8@lab.ntt.co.jp) wrote: > On 2017/02/17 22:32, Stephen Frost wrote: > > * Amit Langote (Langote_Amit_f8@lab.ntt.co.jp) wrote: > >> In certain cases, pg_dump's dumpTableSchema() emits a separate ALTER T= ABLE > >> command for those schema elements of a table that could not be included > >> directly in the CREATE TABLE command for the table. > >=20 > > Any chance we could start adding regression tests for how pg_dump > > handles partitions? I'm just about to the point where I have pretty > > much everything else covered (at least in pg_dump.c, where it's not a > > hard-to-reproduce error/exit case, or something version-dependent). > >=20 > > If you have any questions about how the TAP tests for pg_dump work, or > > about how to generate code-coverage checks to make sure you're at least > > hitting every line (tho, of course, not every possible path), let me > > know. I'd be happy to explain them. >=20 > Yeah, I guess it would be a good idea to have some pg_dump TAP test > coverage for the new partitioning stuff. I will look into that and get > back to you if I don't grok something there. As you may have seen, I've added some tests to the pg_dump TAP tests for partitioning to cover lines of code not already covered. There are still some bits not covered though, which you can see here: https://coverage.postgresql.org/src/bin/pg_dump/pg_dump.c.gcov.html If you have any questions about the way the pg_dump tests work, feel free to ask. Thanks! Stephen --7155Inxk/SN6GkBE Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJY0AYaAAoJEO1sijiDR2RVZHwP/3nHumy4cNw4mOf1QLG+04Hc emu3yARp10r69PK0A3HOyIbrqen5pskqoYz6ozAvtL+EFZicg7os8bD68rCa+BW9 MDJ7IhkgOJwnyzRkFWtYg7HyFhhM6X7qGKEXujRNzsJjxoNnLLmR1j12qjiYGPT4 BGkjg/s9h8dKHsVoEO6XUt+bi7m0FeAZa0jEwFYZzeQo6BLCAn6oGBrUIKHyZaQ6 9TPDwPd3pNlP+A1zGbahOsvT6eRGkvyn9jvwQ5V+9s0TXpZK6mGrxwuyT4g/pOKk LkvPtXpe2rYFPrTs2vjMrctwJ/heHO9lD8LGjVO5jJ/RqcV5ynjjV10A9kf43rWY udCAmxKlWDUGedYKk2B5KUyPbNqF4IRpguS5EkWOAY00Y8qdnNHlhg00hf8ctWVn gq1XG1LY/VJB+4s0SHQAjk8zB8g6RUqKqmGbmqa5YGoRVYnsTd1QHvTKfi9r39XQ /2XYJWTwiMgGs+7dhZaV9vPSaqx0VbDw1UO7vnmJ9xaUB2T9504aZSr6Hh4WSWxO 6D8jBTUiy0yWpgRdFRjr+15JRgNUxlQfWcEWnH7btJNl+QEa2GJ5+LIqmaR4QIfY AuLlJK+YAyuY00fOb9ms2yNKFz2GyunVeDj0Sjg87EM7x1Bo8tBwzUCjirnOqmvp jcrsJJSVCEtTOItg6aQg =nXix -----END PGP SIGNATURE----- --7155Inxk/SN6GkBE--