From: Tom Lane <tgl@sss.pgh.pa.us>
To: Ron <ronljohnsonjr@gmail.com>
Cc: " <pgsql-general@postgresql.org>
Subject: Re: pg_dump of partitioned table not working.
Date: Wed, 02 Dec 2020 18:50:06 -0500
Message-ID: <1681291.1606953006@sss.pgh.pa.us> (raw)
In-Reply-To: <1680962.1606952548@sss.pgh.pa.us>
References: <6b713437-69e3-0383-0c5f-f2e01bd46daa@gmail.com>
<1680962.1606952548@sss.pgh.pa.us>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, ronljohnsonjr@gmail.com
Subject: Re: pg_dump of partitioned table not working.
In-Reply-To: <1681291.1606953006@sss.pgh.pa.us>
References: <6b713437-69e3-0383-0c5f-f2e01bd46daa@gmail.com> <1680962.1606952548@sss.pgh.pa.us> <1681291.1606953006@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox