Re: counting algorithm for incremental matview maintenance

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: counting algorithm for incremental matview maintenance
Дата
Msg-id 1368721495.47296.YahooMailNeo@web162902.mail.bf1.yahoo.com
обсуждение исходный текст
Ответ на Re: counting algorithm for incremental matview maintenance  (Kevin Grittner <kgrittn@ymail.com>)
Список pgsql-hackers
I wrote:

> Let's say there is a table and matview like this:
>
> create table foo (fooid int primary key, val int not null);
> create materialized view bar as select distinct val from foo;

Some of the subsequent text doesn't make sense unless that
materialized view has an index, like this:

create unique index bar_val on bar (val);

Without such an index, it would need to use a plan which scanned
the entire bar relation for any maintenance.  Apologies for the
omission and any confusion it caused.

--
Kevin Grittner
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Better LWLocks with compare-and-swap (9.4)
Следующее
От: Amit Langote
Дата:
Сообщение: Re: Logging of PAM Authentication Failure