Re: possible TODO: read-only tables, select from indexes
От
Simon Riggs
Тема
Re: possible TODO: read-only tables, select from indexes
Дата
Msg-id
1114206225.21529.35.camel@localhost.localdomain
Ответ на
possible TODO: read-only tables, select from indexes only. (Hannu Krosing)
Список
Дерево обсуждения
possible TODO: read-only tables, select from indexes only. Hannu Krosing <hannu@tm.ee>
Re: possible TODO: read-only tables, select from indexes Simon Riggs <simon@2ndquadrant.com>
Re: possible TODO: read-only tables, select from indexes Ron Mayer <rm_pg@cheapcomplexdevices.com>
Re: possible TODO: read-only tables, select from indexes only. Bruce Momjian <pgman@candle.pha.pa.us>
Re: possible TODO: read-only tables, select from indexes Hannu Krosing <hannu@tm.ee>
Re: possible TODO: read-only tables, select from indexes only. Bruce Momjian <pgman@candle.pha.pa.us>
Re: possible TODO: read-only tables, select from indexes Hannu Krosing <hannu@tm.ee>
Re: possible TODO: read-only tables, select from indexes only. Russell Smith <mr-russ@pws.com.au>
Re: possible TODO: read-only tables, select from indexes only. Bruce Momjian <pgman@candle.pha.pa.us>
Re: possible TODO: read-only tables, select from indexes Hannu Krosing <hannu@tm.ee>
Re: possible TODO: read-only tables, select from indexes "Jim C. Nasby" <decibel@decibel.org>
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 Simon Riggs <simon@2ndquadrant.com>
Re: possible TODO: read-only tables, select from indexes only. Tom Lane <tgl@sss.pgh.pa.us>
Re: possible TODO: read-only tables, select from indexes Hannu Krosing <hannu@tm.ee>
Re: possible TODO: read-only tables, select from indexes Hannu Krosing <hannu@skype.net>
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 only. Tom Lane <tgl@sss.pgh.pa.us>
Re: possible TODO: read-only tables, select from indexes Paul Tillotson <pntil@shentel.net>
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 only. Jochem van Dieten <jochemd@gmail.com>
Re: possible TODO: read-only tables, select from indexes only. Ron Mayer <rm_pg@cheapcomplexdevices.com>
On Fri, 2005-04-22 at 18:34 +0300, Hannu Krosing wrote: > Fetching data from just indexes has been discussed on this list several > times before, and it has been told that this can't be done with postgres > thanks to MVCC. > > But this is true only when data is changing. In a data-warehousing > scenario what it is often needed is a possibility for fast querying of > static historical data. > > If table has been VACUUM'ed or REINDEX'ed after last change > (update/delete/insert), then there is 1-1 correspondence between table > and indexes, and thus no need to fetch the tuple from heap for extra > visibility checks. > > What I am proposing is > > 1) possibility to explicitly change table status to READ-ONLY . > > 2) setting a flag CAN_OMIT_HEAP_CHECK after REINDEX TABLE for tables > that are READ-ONLY > > 3) changing postgres planner/executor to make use of this flag, by not > going to heap for tuples on tables where CAN_OMIT_HEAP_CHECK is true. > Hannu, I'm with you on this, for all sorts of reasons. I've done a lot of detailed thought on this. As Ron says, until we have partitioning, it isn't as useful for DW. Best Regards, Simon Riggs
В списке pgsql-hackers по дате отправления
От: Andrew Dunstan
Дата: