Re: UPDATE many records

Alan Hodgson <[email protected]> Tue, 07 Jan 2020 12:56:16 -0800
Newsgroups gmane.comp.db.postgresql.general
Message-ID <[email protected]>
On Tue, 2020-01-07 at 11:47 -0900, Israel Brewster wrote:
> One potential issue I just thought of with this approach: disk space.
> Will I be doubling the amount of space used while both tables exist?
> If so, that would prevent this from working - I don’t have that much
> space available at the moment.

The original update you planned would do that, too.

You probably need to just do the update in batches and vacuum the table
between batches.