Re: Need suggestion on how best to update 3 million rows

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Need suggestion on how best to update 3 million rows
Дата
Msg-id 20070906191415.GK8709@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: Need suggestion on how best to update 3 million rows  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-general
Alvaro Herrera wrote:
> Lincoln Yeoh wrote:
> > At 06:32 PM 9/6/2007, Richard Huxton wrote:
> >
> >> Two other tips for bulk-updates like this:
> >> 1. Do as many columns in one go as you can
> >> 2. Only update rows that need updating
> >>
> >> When you've finished, a CLUSTER/VACUUM FULL can be useful too.
> >
> > How about: make sure you have enough free space because the table will
> > effectively double in size? Assuming it hasn't already been updated a few
> > times without vacuuming :).
>
> It is true for CLUSTER, but not for VACUUM FULL.

Doh, sorry, you were referring to double the space during the UPDATE.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: a provocative question?
Следующее
От: Kenneth Downs
Дата:
Сообщение: Re: a provocative question?