From: Tom Lane <tgl@sss.pgh.pa.us>
To: Tilo Schwarz <mail@tilo-schwarz.de>
Cc: pgsql-admin@postgresql.org
Subject: Re: Vacuum explained
Date: Tue, 07 Jan 2003 23:02:41 -0500
Message-ID: <597.1041998561@sss.pgh.pa.us> (raw)
In-Reply-To: <200301080013.24633.mail@tilo-schwarz.de>
References: <av6rrh$1sfe$1@news.hub.org>
<1041884632.15455.112.camel@camel>
<26423.1041885959@sss.pgh.pa.us>
<200301080013.24633.mail@tilo-schwarz.de>
Tilo Schwarz <mail@tilo-schwarz.de> writes:
> Do you try to reuse tuples with a similar storage size (or something like
> that)
No. If we try to put a tuple on a page, and there's room there, we'll
store it. There is no intra-page fragmentation problem because we can
always reshuffle the tuples on a particular page --- this is what the
"page item pointer" overhead buys us.
Also, since any given file only holds tuples of a particular table,
there's already some degree of size-similarity present. This gets
pretty weak if some of the fields are of widely varying length, of
course, but I'm dubious that there's much gold to be mined by thinking
harder about which page we put a tuple on...
> Any pointers to documentation or into the source code are welcome!
The comments at the head of src/include/storage/bufpage.h might be
illuminating. Also see
http://www.ca.postgresql.org/users-lounge/docs/7.3/postgres/page.html
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, mail@tilo-schwarz.de
Subject: Re: Vacuum explained
In-Reply-To: <597.1041998561@sss.pgh.pa.us>
References: <av6rrh$1sfe$1@news.hub.org> <1041884632.15455.112.camel@camel> <26423.1041885959@sss.pgh.pa.us> <200301080013.24633.mail@tilo-schwarz.de> <597.1041998561@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