From: hubert depesz lubaczewski <depesz@depesz.com>
To: Durumdara <durumdara@gmail.com>
Cc: Postgres General <pgsql-general@postgresql.org>
Subject: Re: Add column with default value in big table - splitting of updates can help?
Date: Thu, 30 Jan 2020 17:20:21 +0100
Message-ID: <20200130162021.GA29421@depesz.com> (raw)
In-Reply-To: <CAEcMXhk6sutuZR5BAXriBO_2Yj7ObOVbeT8Hw_J1aZwD83Ufrg@mail.gmail.com>
References: <CAEcMXhk6sutuZR5BAXriBO_2Yj7ObOVbeT8Hw_J1aZwD83Ufrg@mail.gmail.com>
On Thu, Jan 30, 2020 at 04:51:02PM +0100, Durumdara wrote:
> Is there any advance when I split updates? I'm in one transaction.
In this case - no. The benefit of split updates is when you're not in
single transaction.
Why would you want to have it all done in single transaction?
Best regards,
depesz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: depesz@depesz.com, durumdara@gmail.com
Subject: Re: Add column with default value in big table - splitting of updates can help?
In-Reply-To: <20200130162021.GA29421@depesz.com>
References: <CAEcMXhk6sutuZR5BAXriBO_2Yj7ObOVbeT8Hw_J1aZwD83Ufrg@mail.gmail.com> <20200130162021.GA29421@depesz.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox