Re: Need to update all my 60 million rows at once without transactional integrity - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: Need to update all my 60 million rows at once without transactional integrity
Date
Msg-id 20080423130429.GD4768@alvh.no-ip.org
Whole thread Raw
In response to Need to update all my 60 million rows at once without transactional integrity  (christian_behrens@gmx.net)
Responses Re: Need to update all my 60 million rows at once without transactional integrity  ("Merlin Moncure" <mmoncure@gmail.com>)
List 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 by date:

Previous
From: Alvaro Herrera
Date:
Subject: Re: plpgsql and logical expression evaluation
Next
From: Glyn Astill
Date:
Subject: Qty of WAL files