reindex

Поиск
Список
Период
Сортировка
От Sim Zacks
Тема reindex
Дата
Msg-id 4B31EA5B.7090208@compulab.co.il
обсуждение исходный текст
Ответы Re: reindex  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
Re: reindex  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
I have an aggregate table which is constantly being overwritten. Every
10 minutes or so, the table is erased and populated with new data, most
of which is the same.

Basically a materialized view.


I have been going through some queries that use this table and noticed
that the explain looked different from our test database (a backup of
the prod db)  which has the same number of rows and the same type of
data. vacuum analyze did not change anything.

One specific difference I noticed was that it was doing a sequential
scan instead of an index scan.

reindex table changed the prod one to look like the test one.


The indexes are all btree.


After an hour or so the old explain had returned.

Does this make any sense? Should I be doing something different?


Thanks

Sim


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

Предыдущее
От: Jayadevan M
Дата:
Сообщение: Re: PostgreSQL and character set change
Следующее
От: "Andrus"
Дата:
Сообщение: Re: How to add month.year column validation