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 1lXn3r-0003Vx-DU for pgsql-admin@arkaria.postgresql.org; Sat, 17 Apr 2021 15:40:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lXn3n-0006wh-Ns for pgsql-admin@arkaria.postgresql.org; Sat, 17 Apr 2021 15:40:39 +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 1lXn3n-0006vn-Gd for pgsql-admin@lists.postgresql.org; Sat, 17 Apr 2021 15:40:39 +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 1lXn3h-00085p-SH for pgsql-admin@lists.postgresql.org; Sat, 17 Apr 2021 15:40:38 +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 13HFeUV8257890; Sat, 17 Apr 2021 11:40:31 -0400 From: Tom Lane To: "David G. Johnston" cc: Ron , "pgsql-admin@lists.postgresql.org" Subject: Re: Reordering the fields in a table In-reply-to: References: Comments: In-reply-to "David G. Johnston" message dated "Sat, 17 Apr 2021 08:21:34 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <257888.1618674030.1@sss.pgh.pa.us> Date: Sat, 17 Apr 2021 11:40:30 -0400 Message-ID: <257889.1618674030@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk "David G. Johnston" writes: > The feature has been discussed before on these lists and the only thing > preventing its inclusion is some developers either donating their time to > see it finished or some interested non-developers paying some developers to > write it on their behalf. It's not just whether somebody finishes a patch. The real concern here is that separating logical from physical column order would inevitably cause great quantities of bugs, probably including some on the client side. If our experience with dropped columns is any guide, it'd probably take *years* to flush out all the places that misbehave when dealing with re-ordered columns. So maybe it'll happen eventually, but it'll be far from pain-free. (FWIW, I recall that Alvaro Herrera had a semi-finished patch in this area a few years ago. If anyone is interested in pursuing this, starting from that would likely be useful.) regards, tom lane