Re: possible TODO: read-only tables, select from indexes only. - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: possible TODO: read-only tables, select from indexes only.
Date
Msg-id 20050423232456.GE29760@dcc.uchile.cl
Whole thread Raw
In response to Re: possible TODO: read-only tables, select from indexes only.  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: possible TODO: read-only tables, select from indexes only.
List pgsql-hackers
On Sat, Apr 23, 2005 at 06:27:38PM -0400, Tom Lane wrote:

> While I don't say it's impossible to do, I do think that the work and
> semantic ugliness involved would outweigh the possible benefits.  In
> particular, there are other, more transparent ways of doing #1.

One idea that may be closer to reality might be implementing heaps that
behave as indexes (or indexes that behave as heaps), or clustered
indexes as some other database call them; the main idea being that at
the leaf nodes of the index, the whole heap tuple resides instead of
only a CTID.

One problem I see with that approach is the maximum tuple size ... our
current btree index code can't handle tuples bigger than (BLCKSZ/3)
IIRC, some 2 kB.

-- 
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
"Vivir y dejar de vivir son soluciones imaginarias.
La existencia está en otra parte" (Andre Breton)


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: possible TODO: read-only tables, select from indexes only.
Next
From: Tom Lane
Date:
Subject: Re: possible TODO: read-only tables, select from indexes only.