From: Tilo Schwarz <mail@tilo-schwarz.de>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Vacuum explained
Date: Wed, 8 Jan 2003 00:13:24 +0100
Message-ID: <200301080013.24633.mail@tilo-schwarz.de> (raw)
In-Reply-To: <26423.1041885959@sss.pgh.pa.us>
References: <av6rrh$1sfe$1@news.hub.org>
<1041884632.15455.112.camel@camel>
<26423.1041885959@sss.pgh.pa.us>
Tom Lane writes:
> > Unused = # of tuples awaiting being reused
>
> These are not actually tuples, but tuple slots (page item pointers)
> that are open for re-use.
Maybe this is a good place to ask this: How do you actually reuse a tuple (or
the space the tuple needed on disk) if the number of bytes needed to store a
new tuple depends on the number of non null columns, the variable length
columns etc. (If I understood the documentation right, you store the tuples
within a page packed, i.e. variable length tuples are stored one after the
other, sometimes with alignment between the tuple header and the tuple data.)
Do you try to reuse tuples with a similar storage size (or something like
that) to prevent fragmentation or don't you have fragmentation by design (and
I miss something).
Any pointers to documentation or into the source code are welcome!
Regards,
Tilo Schwarz
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: mail@tilo-schwarz.de, tgl@sss.pgh.pa.us
Subject: Re: Vacuum explained
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>
* 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