pgsql: Update relation's stats in pg_class during vacuum full.

Поиск
Список
Период
Сортировка
От Teodor Sigaev
Тема pgsql: Update relation's stats in pg_class during vacuum full.
Дата
Msg-id E1eUDb0-0005Dc-J0@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-hackers
Update relation's stats in pg_class during vacuum full.

Hash index depends on estimation of numbers of tuples and pages of relations,
incorrect value could be a reason of significantly growing of index. Vacuum
full recreates heap and reindex all indexes before renewal stats. The patch
fixes that, so indexes will see correct values.

Backpatch to v10 only because earlier versions haven't usable hash index and
growing of hash index is a single user-visible symptom.

Author: Amit Kapila
Reviewed-by: Ashutosh Sharma, me
Discussion: https://www.postgresql.org/message-id/flat/20171115232922.5tomkxnw3iq6jsg7@inml.weebeastie.net

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/ad337c76b6f454157982309089c3302fe77c9cbc

Modified Files
--------------
src/backend/commands/cluster.c | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)


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

Предыдущее
От: Mike Feld
Дата:
Сообщение: Re: psycopg2 and java gssapi questions
Следующее
От: Teodor Sigaev
Дата:
Сообщение: pgsql: Update relation's stats in pg_class during vacuum full.