Re: problems maintaining boolean columns in a large table

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: problems maintaining boolean columns in a large table
Дата
Msg-id 4B744314.7030301@hogranch.com
обсуждение исходный текст
Ответ на problems maintaining boolean columns in a large table  (Ben Campbell <ben@scumways.com>)
Список pgsql-general
Ben Campbell wrote:
> I _think_ the reason it takes so long is that postgresql doesn't
> modify rows in place - it creates an entry for the modified row and
> zaps the old one. So by touching _every_ row I'm basically forcing it
> to rebuild my whole database... I've got about 2 million rows in
> 'articles'.
> There are a few indexes on columns in 'articles' which obviously will
> slow things down too.

at the expense of disk space, try setting fill_factor for that table to
something like 70 instead of the default 100.



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

Предыдущее
От: Chris Barnes
Дата:
Сообщение: Truncate and delete adds wal logs for slave to process.
Следующее
От: Tom Lane
Дата:
Сообщение: Re: questions about a table's row estimates