Re: Reviving Time Travel (was Re: 'TID index') - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: Reviving Time Travel (was Re: 'TID index')
Date
Msg-id 20040930225716.GC7487@dcc.uchile.cl
Whole thread Raw
In response to Re: Reviving Time Travel (was Re: 'TID index')  ("Jim C. Nasby" <decibel@decibel.org>)
Responses Re: Reviving Time Travel (was Re: 'TID index')
List pgsql-hackers
On Thu, Sep 30, 2004 at 04:57:37PM -0500, Jim C. Nasby wrote:

> Heh, I was about to ask for the pages with dead tuples list to be added
> to the TODO, but it seems it's already there ('Maintain a map of
> recently-expired rows'). One thing that isn't there which I remember
> being discussed was having the page-write daemon do a vacuum of a page
> before it's written; has this been done already?

Not done, but discussed.  One problem is that to vacuum a page, you may
need to bring the related index pages to memory, which is more work than
you are saving.

One idea would be to vacuum the page if it can be determined that the
relation doesn't have indexes.  This information is generally not known,
because the index list isn't constructed until/unless someone explicitly
asks for it.  But anyway, do you have a lot of tables with no index?
And how many of them are big enough to warrant doing this?

-- 
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"Having your biases confirmed independently is how scientific progress is
made, and hence made our great society what it is today" (Mary Gardiner)



pgsql-hackers by date:

Previous
From: Joe Conway
Date:
Subject: Re: output branches before infinite recursion using connectby()?
Next
From: "Marc G. Fournier"
Date:
Subject: Re: CREATE INDEX speeds up query on 31 row table ...