X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id C44889DC80A for ; Fri, 3 Mar 2006 10:53:47 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 65148-01 for ; Fri, 3 Mar 2006 10:53:52 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 2C3BD9DCB38 for ; Fri, 3 Mar 2006 10:53:45 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id k23ErlRl000421; Fri, 3 Mar 2006 09:53:47 -0500 (EST) To: Peter Eisentraut cc: pgsql-general@postgresql.org, "Paul Mackay" Subject: Re: Physical column size In-reply-to: <200603031123.22453.peter_e@gmx.net> References: <786c2f6d0601260206k2201a548p48af7c7fc085d3b2@mail.gmail.com> <786c2f6d0603030203m3b7c62a1k6950ceca066dc5ce@mail.gmail.com> <200603031123.22453.peter_e@gmx.net> Comments: In-reply-to Peter Eisentraut message dated "Fri, 03 Mar 2006 11:23:21 +0100" Date: Fri, 03 Mar 2006 09:53:47 -0500 Message-ID: <420.1141397627@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.112 required=5 tests=[AWL=0.112] X-Spam-Score: 0.112 X-Spam-Level: X-Archive-Number: 200603/124 X-Sequence-Number: 91989 Peter Eisentraut writes: > An int4 field is required to be aligned at a 4-byte boundary internally, so > there are 3 bytes wasted between tmp_A.c and tmp_A.i. If you switch the > order of the fields you should see space savings. Probably not, because the row-as-a-whole has alignment requirements too. In this example you'll just move the pad bytes from one place to another. regards, tom lane