Preventing index scans for non-recoverable index AMs

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Preventing index scans for non-recoverable index AMs
Дата
Msg-id 1229549172.4793.105.camel@ebony.2ndQuadrant
обсуждение исходный текст
Ответы Re: Preventing index scans for non-recoverable index AMs  ("Jaime Casanova" <jcasanov@systemguards.com.ec>)
Re: Preventing index scans for non-recoverable index AMs  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-hackers
Hot Standby won't work with hash indexes because they are
non-recoverable.

We have a number of ways of dealing with this:

1. Workaround: Implement WAL for hash indexes

2. Specific Solution: make hashcostestimate() massively increase cost of
scans during recovery so that they will very seldom be picked and make
hashbeginscan() refuse scans during recovery in case they do happen

3. Generic Solution: add amisrecoverable flag to pg_am, and alter
generic index AM to check whether index is recoverable before selecting
it during planning

I was hoping to do (1), but I'm looking for a quicker solution now so we
can tie up loose ends for review.

(2) seems most appropriate, since it will last only until (1) is
complete in a later release.

Anyone see additional options or prefer alternatives?

-- Simon Riggs           www.2ndQuadrant.comPostgreSQL Training, Services and Support



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

Предыдущее
От: MUHAMMAD ASIF
Дата:
Сообщение: Re: PLUGINS Functionlity in Win32 build scripts
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: Partitioning wiki page