Re: possible TODO: read-only tables, select from indexes only.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: possible TODO: read-only tables, select from indexes only.
Дата
Msg-id 22415.1114295258@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: possible TODO: read-only tables, select from indexes only.  (Ron Mayer <rm_pg@cheapcomplexdevices.com>)
Ответы Re: possible TODO: read-only tables, select from indexes only.  (Alvaro Herrera <alvherre@dcc.uchile.cl>)
Re: possible TODO: read-only tables, select from indexes  (Paul Tillotson <pntil@shentel.net>)
Re: possible TODO: read-only tables, select from indexes  (Hannu Krosing <hannu@tm.ee>)
Re: possible TODO: read-only tables, select from indexes only.  (Jochem van Dieten <jochemd@gmail.com>)
Re: possible TODO: read-only tables, select from indexes  (Hannu Krosing <hannu@skype.net>)
Список pgsql-hackers
Ron Mayer <rm_pg@cheapcomplexdevices.com> writes:
> Is this a fair summary of the potential benefits of READ-ONLY
> tables? (from both this thread and the archives):

>   1.  Index-only scans are made possible fairly easily because
>       you wouldn't need to check the heap for visibility.

>   2.  Simple tables can be much smaller since you don't need
>       most of the HeapTupleHeaderData.

What you are talking about is not a "read only" table, it is a
"non-MVCC" table.  This is a much greater assault on the fundamental
semantics of Postgres than it's being painted to be in this thread.
In particular, how is such a table going to come into being?  You'd
not be able to just flip the READ-ONLY flag on and off.

(The notion of having tuples in the system that don't have the standard
HeapTupleHeader is not as easy to implement as you might think, either,
because that data structure is *everywhere*.)

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.
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Ron Mayer
Дата:
Сообщение: Re: possible TODO: read-only tables, select from indexes
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: possible TODO: read-only tables, select from indexes only.