Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kkbsz-000304-4c for pgsql-general@arkaria.postgresql.org; Wed, 02 Dec 2020 23:50:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kkbsy-0002GR-4a for pgsql-general@arkaria.postgresql.org; Wed, 02 Dec 2020 23:50:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kkbsx-0002GK-U7 for pgsql-general@lists.postgresql.org; Wed, 02 Dec 2020 23:50:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kkbsv-0007vJ-9v for pgsql-general@postgresql.org; Wed, 02 Dec 2020 23:50:11 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 0B2No6Zn1681292; Wed, 2 Dec 2020 18:50:06 -0500 From: Tom Lane To: Ron cc: "pgsql-general@postgresql.org >> PG-General Mailing List" Subject: Re: pg_dump of partitioned table not working. In-reply-to: <1680962.1606952548@sss.pgh.pa.us> References: <6b713437-69e3-0383-0c5f-f2e01bd46daa@gmail.com> <1680962.1606952548@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 02 Dec 2020 18:42:28 -0500" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1681290.1606953006.1@sss.pgh.pa.us> Date: Wed, 02 Dec 2020 18:50:06 -0500 Message-ID: <1681291.1606953006@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk I wrote: > What you need here is something like "pg_dump -t measurement*" > to indicate that you want measurement's child tables too, but > AFAIR pg_dump has no such feature. Maybe we should add it. Or actually: that syntax does do something, but it selects tables by pattern matching not hierarchy, ie you get everything whose name starts with "measurement". Depending on your naming conventions, that might be close enough. It does seem like there might be reason to have a switch along the lines of "--include-child-tables". regards, tom lane