Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1Xee-0006r7-Bk for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Mar 2019 14:36:20 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h1Xed-0004jo-0w for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Mar 2019 14:36:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1Xec-0004jh-ML for pgsql-hackers@lists.postgresql.org; Wed, 06 Mar 2019 14:36:18 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1XeW-0004Dx-Ak for pgsql-hackers@lists.postgresql.org; Wed, 06 Mar 2019 14:36:17 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x26Ea7II016498; Wed, 6 Mar 2019 09:36:07 -0500 From: Tom Lane To: David Rowley cc: PostgreSQL Hackers , Alvaro Herrera , Andres Freund Subject: Re: pg_dump is broken for partition tablespaces In-reply-to: References: Comments: In-reply-to David Rowley message dated "Wed, 06 Mar 2019 19:45:06 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16496.1551882967.1@sss.pgh.pa.us> Date: Wed, 06 Mar 2019 09:36:07 -0500 Message-ID: <16497.1551882967@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David Rowley writes: > As far as I can see, the biggest fundamental difference with doing > things this way will be that the column order of partitions will be > preserved, where before it would inherit the order of the partitioned > table. I'm a little unsure if doing this column reordering was an > intended side-effect or not. Well, if the normal behavior results in changing the column order, it'd be necessary to do things differently in --binary-upgrade mode anyway, because there we *must* preserve column order. I don't know if what you're describing represents a separate bug for pg_upgrade runs, but it might. Is there any test case for the situation left behind by the core regression tests? regards, tom lane