Re: Slow Restoration of a template1 Database (ALTER GROUP)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Slow Restoration of a template1 Database (ALTER GROUP)
Дата
Msg-id 9898.1107894734@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Slow Restoration of a template1 Database (ALTER GROUP)  ("Ben Young" <Ben.Young@etrials.com>)
Список pgsql-performance
"Ben Young" <Ben.Young@etrials.com> writes:
> Is the "index bloat" prevented/reduced in newer versions of Postgres?

Depends on what's causing it.  Have you been inventing alphabetically
greater group names and getting rid of smaller names over time?  If so,
this is a known problem that should be fixed in 7.4.  The 7.4 release
notes say:

     In previous releases, B-tree index pages that were left empty
     because of deleted rows could only be reused by rows with index
     values similar to the rows originally indexed on that page. In 7.4,
     VACUUM records empty index pages and allows them to be reused for
     any future index rows.

            regards, tom lane

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

Предыдущее
От: "Ben Young"
Дата:
Сообщение: Re: Slow Restoration of a template1 Database (ALTER GROUP)
Следующее
От: Dirk.Lutzebaeck@t-online.de (Dirk Lutzebaeck)
Дата:
Сообщение: Re: query produces 1 GB temp file