From: Heikki Linnakangas <heikki@enterprisedb.com>
To: Pavan Deolasee <pavan.deolasee@gmail.com>
Cc: Martijn van Oosterhout <kleptog@svana.org>
Cc: pgsql-hackers@postgresql.org
Subject: Re: Free space management within heap page
Date: Tue, 23 Jan 2007 09:33:28 +0000
Message-ID: <45B5D668.5050406@enterprisedb.com> (raw)
In-Reply-To: <2e78013d0701230103y1d587db9q6733adca0ca92ca0@mail.gmail.com>
References: <2e78013d0701230018m7bebdd35t32bdc8ea786511e8@mail.gmail.com>
<20070123084846.GC19527@svana.org>
<2e78013d0701230103y1d587db9q6733adca0ca92ca0@mail.gmail.com>
Pavan Deolasee wrote:
> One assumption I am making here is that its sufficient to mark the line
> pointer
> "unused" (reset LP_USED flag) even though there is an index entry pointing
> to
> the tuple. During index scan, we anyways check for ItemIdIsUsed() before
> proceeding further. I know it might break the ctid chain, but does that
> really
> matter ? I don't see any reason why somebody would need to follow ctid
> chain
> past a dead tuple.
You can't clear the LP_USED flag, but you could use the LP_DELETE flag
that's currently not used in heap pages.
--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com
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-hackers@postgresql.org
Cc: heikki@enterprisedb.com, pavan.deolasee@gmail.com, kleptog@svana.org
Subject: Re: Free space management within heap page
In-Reply-To: <45B5D668.5050406@enterprisedb.com>
* 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