Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ixCYM-0002R8-RX for pgsql-general@arkaria.postgresql.org; Thu, 30 Jan 2020 16:20:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ixCYK-0008SA-VS for pgsql-general@arkaria.postgresql.org; Thu, 30 Jan 2020 16:20:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ixCYK-0008Pp-JU for pgsql-general@lists.postgresql.org; Thu, 30 Jan 2020 16:20:24 +0000 Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ixCYI-0005cm-HH for pgsql-general@postgresql.org; Thu, 30 Jan 2020 16:20:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20170201; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To: Message-ID:Subject:Cc:To:Sender:From:Date:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=VVTE2ZthqWxaNmSQGvIkTI1cIzPVJqb+5VhQGvzKe64=; b=GcgBXXS9SFUuh3MMwtojZAGKEf dMSZS5R0EfMphqDMOKdAQ7tFYRbba9wIcmlLWmsZERt07X8sEOOsrZFSrhXYPuQ+BFkpzWM6lc9gR J1jH13J3tSCqILSzJWlbBbp4eLthF9VjbwdCY8cLdt/I2RGO02gVrNQ7B2eQYja6ilic=; Received: from lana.depesz.com ([88.198.49.178] helo=depesz.com) by depesz.com with esmtpa (Exim 4.92) (envelope-from ) id 1ixCYH-000097-6P; Thu, 30 Jan 2020 17:20:21 +0100 Date: Thu, 30 Jan 2020 17:20:21 +0100 From: hubert depesz lubaczewski Sender: depesz@depesz.com To: Durumdara Cc: Postgres General Subject: Re: Add column with default value in big table - splitting of updates can help? Message-ID: <20200130162021.GA29421@depesz.com> Reply-To: depesz@depesz.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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