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 1pcmxk-0006MB-O8 for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Mar 2023 12:44:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pcmxj-000642-E7 for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Mar 2023 12:44:07 +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 1pcmxj-00063t-4B for pgsql-hackers@lists.postgresql.org; Thu, 16 Mar 2023 12:44:07 +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 1pcmxg-0007uu-1P for pgsql-hackers@lists.postgresql.org; Thu, 16 Mar 2023 12:44:06 +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 32GChuCU3756157; Thu, 16 Mar 2023 08:43:56 -0400 From: Tom Lane To: Julien Rouhaud cc: Andrew Dunstan , Alvaro Herrera , David Rowley , Peter Geoghegan , Robert Haas , pgsql-hackers@lists.postgresql.org, Andrew Subject: Re: pg_dump versus hash partitioning In-reply-to: <20230316090352.v2m2d473fcv5tli6@jrouhaud> References: <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> <20230313083314.pivmgfu36fi4eu2n@jrouhaud> <2441413.1678750752@sss.pgh.pa.us> <20230316090352.v2m2d473fcv5tli6@jrouhaud> Comments: In-reply-to Julien Rouhaud message dated "Thu, 16 Mar 2023 17:03:52 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3756155.1678970636.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 16 Mar 2023 08:43:56 -0400 Message-ID: <3756156.1678970636@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Julien Rouhaud writes: > On Mon, Mar 13, 2023 at 07:39:12PM -0400, Tom Lane wrote: >> Yeah, we need to do both. Attached find an updated patch series: > I didn't find a CF entry, is it intended? Yeah, it's there: https://commitfest.postgresql.org/42/4226/ > I'm not sure if you intend to keep the current 0002 - 0003 separation, b= ut if > yes the part about te->defn and possible fallback should be moved to 000= 3. In > 0002 we're only looking at the COPY statement. I was intending to smash it all into one commit --- the separation is just to ease review. > I know you're only inheriting this comment, but isn't it well outdated a= nd not > accurate anymore? I'm assuming that "archiving is not on" was an accept= able > way to mean "wal_level < archive" at some point, but it's now completely > misleading. Sure, want to propose wording? > Hash partitioning was added with pg11, should we bypass pg10 too with a = comment > saying that we only care about hash, at least for the forseeable future? Good point. With v10 already out of support, it hardly matters in the real world, but we might as well not expend cycles when we clearly needn't. > More generally, I also think that forcing --load-via-partition-root for > known unsafe partitioning seems like the best compromise. I'm not sure = if we > should have an option to turn it off though. I think the odds of that yielding a usable dump are nil, so I don't see why we should bother. regards, tom lane