Re: Need to update all my 60 million rows at once without transactional integrity

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Need to update all my 60 million rows at once without transactional integrity
Дата
Msg-id 20080423130429.GD4768@alvh.no-ip.org
обсуждение исходный текст
Ответ на Need to update all my 60 million rows at once without transactional integrity  (christian_behrens@gmx.net)
Ответы Re: Need to update all my 60 million rows at once without transactional integrity
Список pgsql-general
christian_behrens@gmx.net wrote:

> How can I make a Update of a column in a very large table for all rows
> without using the double amount of disc space and without any need for
> atomic operation?
>
> I have a very large table with about 60 million rows. I sometimes need
> to do a simple update to ALL rows that resets a status-flag to zero.

Perhaps you should rethink your data model.


> I would really like to kind of "skip transactions". Of course basic
> data integrity in on disc structures, but not atomicy for this bulk
> update!

There is no such thing on Postgres as "not a transaction".

--
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: plpgsql and logical expression evaluation
Следующее
От: Glyn Astill
Дата:
Сообщение: Qty of WAL files