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 1kkcBd-0003nG-OX for pgsql-general@arkaria.postgresql.org; Thu, 03 Dec 2020 00:09:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kkcBc-0007fB-LS for pgsql-general@arkaria.postgresql.org; Thu, 03 Dec 2020 00:09:28 +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 1kkcBc-0007ez-De for pgsql-general@lists.postgresql.org; Thu, 03 Dec 2020 00:09:28 +0000 Received: from mail-oi1-x236.google.com ([2607:f8b0:4864:20::236]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kkcBa-00084V-JF for pgsql-general@postgresql.org; Thu, 03 Dec 2020 00:09:28 +0000 Received: by mail-oi1-x236.google.com with SMTP id t9so363748oic.2 for ; Wed, 02 Dec 2020 16:09:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=1FSe8L9HKLeHbYxftr8WnIeU48cTWJHV4UwX8Jlo9Ss=; b=vZe4WsglKBHm9OUHFJxEq1F2bX2Xj/Ocl97uWLljyG9mKcWXshoyN3e3goZz1d70vW Em4C9/7cQntTyyXcfEhn0+4tI7wVl1RwHT2e6R/M9Bcs/SJAE2xm4ST5Tf6XD83yUvig rd2HWo9vFg5yzxyFIE+U+CEIsOfcQzTa/A/P6jEKoyJa23QbizqiXPG8T8F150fYfYwV J3RfYaOf3KD7hpgxFMzjwGA5J5eH7zWJ8yEKc7aHMOKA+QkFytkuZD2Cy8DwbtTHjXwv 0VCHGamyDMvDMx80i3r/1aNmjZebRMmTXIdenAwwurAKnHHvRDXDtjWUubcTCrXzuyk+ W9cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=1FSe8L9HKLeHbYxftr8WnIeU48cTWJHV4UwX8Jlo9Ss=; b=jMXCFKPWK7uYwKUg1xeRh6IKTrojRaeYtmQJm8JwtuJeIX948sSPOiOqrDcuVGvmiT hXUh4aGh4wf7o3S8K8JBML49S29djmSeIMZyenasRKPLjrf0NK9Ws+QnO8tfgHxD6a3e sZj3QOhHz6bQ1v0dPp+VJ+H7OrKsdmLX7OQbNsBP1ip0oHQAOIubvIqL3VAe+Afxn1e9 hu5P0XkkqCjsOlvRnfj95pVsdQ21Bsq0gKFdpJ8w+1TaTy1c0b/qNaiEGjN81i2xXCzu 5Z3hMp8xEF/blI9vmLXaA91vmE+QdkaeJ/iSj+N5YvyBWoUFDKpKROlcs6GaX2gUi6kL UsAg== X-Gm-Message-State: AOAM532XkANG1CUw7l6wbFvO9hp/NQrbMS3HayXyXfHRNM6rY/rt0bPy eqGeYpmxIH+GEsGpJrd20IJpGByBnUauVw== X-Google-Smtp-Source: ABdhPJykBXpcBEbEEH0PPqfWgq4dwS1R+1MR9tk3fjl8gRN42eK3OkBGWplOHj79DC2fMoSuvZLU4w== X-Received: by 2002:aca:504e:: with SMTP id e75mr240850oib.170.1606954164929; Wed, 02 Dec 2020 16:09:24 -0800 (PST) Received: from [192.168.1.10] (ip174-67-141-204.no.no.cox.net. [174.67.141.204]) by smtp.googlemail.com with ESMTPSA id n3sm44719oif.42.2020.12.02.16.09.24 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 02 Dec 2020 16:09:24 -0800 (PST) Subject: Re: pg_dump of partitioned table not working. To: "pgsql-general@postgresql.org >> PG-General Mailing List" References: <6b713437-69e3-0383-0c5f-f2e01bd46daa@gmail.com> <1680962.1606952548@sss.pgh.pa.us> From: Ron Message-ID: Date: Wed, 2 Dec 2020 18:09:23 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/alternative; boundary="------------96AA35913BA1D3E7E949F922" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------96AA35913BA1D3E7E949F922 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit On 12/2/20 5:49 PM, David G. Johnston wrote: > On Wednesday, December 2, 2020, Tom Lane > 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. > > >  -t accepts a pattern in pg_dump.  But that requires the user to adhere to > a naming scheme. Not only adhering to a naming scheme, but ensuring that there aren't any other tables which match "measurement*". -- Angular momentum makes the world go 'round. --------------96AA35913BA1D3E7E949F922 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit On 12/2/20 5:49 PM, David G. Johnston wrote:
On Wednesday, December 2, 2020, Tom Lane <tgl@sss.pgh.pa.us> 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.

 -t accepts a pattern in pg_dump.  But that requires the user to adhere to a naming scheme. 

Not only adhering to a naming scheme, but ensuring that there aren't any other tables which match "measurement*".

--
Angular momentum makes the world go 'round.
--------------96AA35913BA1D3E7E949F922--