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 1pbRmU-00030w-Or for pgsql-hackers@arkaria.postgresql.org; Sun, 12 Mar 2023 19:54:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pbRmT-0004R6-FM for pgsql-hackers@arkaria.postgresql.org; Sun, 12 Mar 2023 19:54:57 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pbRmT-0004Qp-3X for pgsql-hackers@lists.postgresql.org; Sun, 12 Mar 2023 19:54:57 +0000 Received: from mail-il1-x12a.google.com ([2607:f8b0:4864:20::12a]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1pbRmP-0003oF-BU for pgsql-hackers@lists.postgresql.org; Sun, 12 Mar 2023 19:54:55 +0000 Received: by mail-il1-x12a.google.com with SMTP id bp11so597486ilb.3 for ; Sun, 12 Mar 2023 12:54:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20210112.gappssmtp.com; s=20210112; t=1678650892; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=fH/dakLY4eMd34GWdiT5NyGsl0bUJd0/U+SioLObGi0=; b=FTvV0H2AgVaHqv40PFgTclz4HOjaATjmkpY55TuBMZ/m+GzJ+ndcIFCbdYRLgRYamB iefnNQmVxcGUHKkCDSLotX6fbWKo56m4w6jhUMtH3tnuw7tlABBPp6pUE2wb1B09V+/w bPH0fxkkA/MivepCbMyrrDKT6wfD7ydgcCskV+GlsrMWGS2CypDqMJnZuYzN1rjXgrHa +NIl6Mxkpc2QCLPIjEM59PlpD86R2ktzEzNEGl2f0Gu1AkdgSrXSyQSFofdvf0EamJAN 6n9zB9ymlRB1wWzbTiu6+OXkYWfUWfrba5wXMupLclcqoZsETnS7DtPiXW4pKy2h3DKH Ueag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678650892; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=fH/dakLY4eMd34GWdiT5NyGsl0bUJd0/U+SioLObGi0=; b=o2iI3FWQCXqDCb+fQvEplzMDUKN1dMZq9di3I9gxv6i8dyd7g3icIi5K/Z8nDMHM7z F/ztygbeauepLEMyKDY7M+CbmrCok0DZCAp2jDiJoIArC1VwDSqsJeItpiWtRfjengfH Ob7nxIiuj6V/00iw+nLqaXJ+EKI6r9RQXwcxGGpI1nTqh3pHCtkT3oTObjUFiYt5qEQn co5iNlmK4C5cWbRdnnT/MNeuTixuQzq/8DOPu3Y/PD22n6rFb33Z7G0WTJ4g2tc1izet bGcalDByk7my9To1l4MsXsxmpcXiqcNnPcxL6Trg7e1fHzKeiI/RVryCy+I8isCWi+1V GnDQ== X-Gm-Message-State: AO0yUKVHt3Ef+X7H/owBuCfeov85Of7/YLgq0GGltSpF9KrwFlpIwo5b 6UBBW0imeGmXp0E4IQvPbyhygg== X-Google-Smtp-Source: AK7set9imir5IuEJ5puR92XzguxwVmRb9MBC466obgOiTUZk8ccFysoZlPP9e9B2cQyHJUXGS0uPIA== X-Received: by 2002:a05:6e02:20c7:b0:315:8340:1e9 with SMTP id 7-20020a056e0220c700b00315834001e9mr27940403ilq.4.1678650891760; Sun, 12 Mar 2023 12:54:51 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id q17-20020a0566380ed100b003a0565a5750sm1829362jas.119.2023.03.12.12.54.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Mar 2023 12:54:51 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 689198008DF; Sun, 12 Mar 2023 14:54:50 -0500 (CDT) Date: Sun, 12 Mar 2023 14:54:50 -0500 From: Justin Pryzby To: Tom Lane Cc: Julien Rouhaud , Andrew Dunstan , Alvaro Herrera , David Rowley , Peter Geoghegan , Robert Haas , pgsql-hackers@lists.postgresql.org, Andrew Subject: Re: pg_dump versus hash partitioning Message-ID: References: <1425446.1675291093@sss.pgh.pa.us> <1440373.1675299790@sss.pgh.pa.us> <1533086.1675349554@sss.pgh.pa.us> <1912821.1676402493@sss.pgh.pa.us> <20230311030154.pg63uspio35h4a6t@jrouhaud> <1078804.1678504214@sss.pgh.pa.us> <20230311033232.g6jgkuzxdawepsbe@jrouhaud> <1602203.1678650412@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1602203.1678650412@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Mar 12, 2023 at 03:46:52PM -0400, Tom Lane wrote: > What I propose we do about that is further tweak things so that > load-via-partition-root forces dumping via COPY. AFAIK the only > compelling use-case for dump-as-INSERTs is in transferring data > to a non-Postgres database, which is a context in which dumping > partitioned tables as such is pretty hopeless anyway. (I wonder if > we should have some way to dump all the contents of a partitioned > table as if it were unpartitioned, to support such migration.) I think that what this other thread is about. https://commitfest.postgresql.org/42/4130/ pg_dump all child tables with the root table