From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter_e@gmx.net>
Cc: pgsql-general@postgresql.org, "Paul Mackay" <mackaypaul@gmail.com>
Subject: Re: Physical column size
Date: Fri, 03 Mar 2006 09:53:47 -0500
Message-ID: <420.1141397627@sss.pgh.pa.us> (raw)
In-Reply-To: <200603031123.22453.peter_e@gmx.net>
References: <786c2f6d0601260206k2201a548p48af7c7fc085d3b2@mail.gmail.com>
<786c2f6d0603030203m3b7c62a1k6950ceca066dc5ce@mail.gmail.com>
<200603031123.22453.peter_e@gmx.net>
Peter Eisentraut <peter_e@gmx.net> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: tgl@sss.pgh.pa.us, peter_e@gmx.net, mackaypaul@gmail.com
Subject: Re: Physical column size
In-Reply-To: <420.1141397627@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox