Re: UPDATE many records

From: Alan Hodgson <ahodgson(at)lists(dot)simkin(dot)ca>
To: "pgsql-general(at)lists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: UPDATE many records
Date: 2020-01-07 20:56:16
Message-ID: 86f7f7160d10a726541fd689c5a518102e3f50c5.camel@lists.simkin.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Israel Brewster 2020-01-07 20:58:49 Re: UPDATE many records
Previous Message Thomas Munro 2020-01-07 20:55:54 Re: Writing Postgres Extensions in C on Windows