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 1lXV1G-0000d2-AX for pgsql-admin@arkaria.postgresql.org; Fri, 16 Apr 2021 20:24:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lXV1F-0007xC-7D for pgsql-admin@arkaria.postgresql.org; Fri, 16 Apr 2021 20:24:49 +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 1lXV1E-0007x5-Vr for pgsql-admin@lists.postgresql.org; Fri, 16 Apr 2021 20:24:48 +0000 Received: from mout.perfora.net ([74.208.4.197]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lXV1C-0007mE-Ih for pgsql-admin@lists.postgresql.org; Fri, 16 Apr 2021 20:24:47 +0000 Received: from [192.168.1.165] ([98.169.214.254]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0MMksD-1lSGl31RVv-008e5c; Fri, 16 Apr 2021 22:24:42 +0200 Subject: Re: Reordering the fields in a table To: Laurenz Albe Cc: "Campbell, Lance" , "pgsql-admin@lists.postgresql.org" References: From: MichaelDBA Message-ID: <54355fa4-5f29-85cd-b1e2-d28fbebf5661@sqlexec.com> Date: Fri, 16 Apr 2021 16:24:39 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 PostboxApp/7.0.47 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Provags-ID: V03:K1:5EMgqajwIXVZGZ/BQR9JDfR2wCcqqES93pdWouKAIVAKlZz3Nbi FuJu0kcuh3sZOHK3B0AKsUpnZ/AXNvY5BTX3OL2Hos1dvsROza5xM0YHuMXSpPJGy7RoFAK UrZxZ/CLfWhWdZwZ+q7YQSi6szleMUrpkkekxyrjvm4kGgd6to5ICDJ2yywr1VhxmPATT/q vPQJGC1IaaE73PLYVASng== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:ksLzBitAsks=:TAnyIdjCt7DAFKCKPUssuo ZGrYMPJH1ff3NBBzz3LMGykkN+/aDrb6hDweJFLafeQAEfBRdAuavj69AMqayUAPwWRmzAZL9 cuMbIkYL3g2TzXm0GYdcv6hw4jaBRsYLS+bUe+UTrMfZ1BHKeTt+/LmESZ514mN0GOC0dySUF afFEiv69bCkfdkHwtP/+2hrJEwhn5hdbfW3LC5XgG6m9ozY6dLMJKKF4FL0O3bHMsNaIFX3XO /sMmigtBJsX2M+BQ3XVM0lSxiG3SRqOuuPTHA+dHV00e3FNQ2FIXxFcW454ZTdh6dlKqrGJtN aezT7cQkfvFfwnCDjqjAhNwuJXxJqwcBjZSZuTTECWDPLWCYfK/OwpjlUMwQgshD8kTrrPOB9 3D0bBGkCaSzB0HFzKCH2QUeV/Lp297Ht3jFmHCN8Yn0+dzj/wLHZLR2DteLCRYwopYwCobL+Q HtBy60YZvkdOcFNVHjJSnKMCG+mrcQbkYxQdieqY+Qomognz+84aAkiZ97r2H6pj+TCT4t0er u45W10MM4yFUOxW1dB48dY= List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Right on, Laurenz! Laurenz Albe wrote on 4/16/2021 3:54 PM: > On Fri, 2021-04-16 at 16:15 +0000, Campbell, Lance wrote: >> I would love to see an enhancement to PostgreSQL where administrators had some way to reorder the fields in their tables. >> >> Why is this a big deal? >> The one issue that causes me the most grief is the readability of tables. When you manage 17 services >> where you are continually tweaking the system you find the tables are very unreadable. >> New fields are continually added to the bottom of tables. They are just not readable. > There is a misconception here. > Database tables are not designed for human consumption. > If you want to present your table data in a readable format, you need a front end application. > Arranging table columns is the job of such a tool. > > If you want to do it in the database, use a view. > Simple views that just reorder the columns are updatable, so you could just > use those instead of the underlying tables in your statements. > > Yours, > Laurenz Albe