Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ttB21-009Sqo-FJ for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Mar 2025 19:49:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1ttB1z-00Eo1e-HH for pgsql-hackers@arkaria.postgresql.org; Fri, 14 Mar 2025 19:49:19 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ttB1z-00Eo1W-5J for pgsql-hackers@lists.postgresql.org; Fri, 14 Mar 2025 19:49:19 +0000 Received: from fhigh-a5-smtp.messagingengine.com ([103.168.172.156]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ttB1x-002rN3-1B for pgsql-hackers@lists.postgresql.org; Fri, 14 Mar 2025 19:49:18 +0000 Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id 7E84B114009E; Fri, 14 Mar 2025 15:49:16 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-03.internal (MEProxy); Fri, 14 Mar 2025 15:49:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm1; t=1741981756; x=1742068156; bh=3 NpScpwIdllVWyqFSV4hvUmnqWLGDz5BHiSZCkciSok=; b=GqVjLkGVtT9eu8mcX a5MBuHI9V3kjc221mVeTazN9SJO6SXF652GaePOicyp3j6sDu5+Vx3WOTx3lPPPD GKhrTt29IyM18f1uhB/IW5NCOHG8F6FBVz1HtOIa/KbSmmuYwfTz+unX/nRhUOhb 33hyqzR3dmkJly9IWATVK3SDtk2BVTN4GKguzjsGj+t6ysR+AldZiRiYmg3POvS4 bsrPTrhcc+uPmxyB0/QQVs0+rnrPE/FIdb8Xn0fYS2B37tPU+2KVLG7J3Ue6q0hK jLF3dEsk5Z2FYPLpjDcH4F0EkfDgFTR6WXBwC2tV1CyulxfSGY5Fj+UWofXOpQFI RoM/A== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddufedujeduucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepfffhvfevuffkgggtugfgjgesthekredttddt jeenucfhrhhomheplmhlvhgrrhhoucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsegrlh hvhhdrnhhoqdhiphdrohhrgheqnecuggftrfgrthhtvghrnhepheefveejkeejteekvddt jeekiefggfejffehtdehudegtedvffehffevhfevheeinecuffhomhgrihhnpegvnhhtvg hrphhrihhsvggusgdrtghomhdphhgrthgvshdqshhofhhtfigrrhgvrdgtohhmnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrh gvsegrlhhvhhdrnhhoqdhiphdrohhrghdpnhgspghrtghpthhtohepfedpmhhouggvpehs mhhtphhouhhtpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrph hoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepihhkvggurghmshhhsehoshhsrdhn thhtuggrthgrrdgtohhmpdhrtghpthhtoheprhhosgesgiiiihhllhgrrdhnvght X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 14 Mar 2025 15:49:15 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alvh.no-ip.org; s=schmee; t=1741981753; bh=YBsh2h6ZHQxSvWDkFO95Nvo2gZIBrEzEThV0Tano7o4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=AWsweLdZEq4lFpqMNM8eLlDB9ZgZKDvCdctsMs+9MEzP5Nab3tcgWIwAkcxYB//Pl swCqv3rc3abr/AOVGtNzEExb9KdD/twiH1Fjb7Ksv9qF7Gnn0iUjzswITk0EaRJwly 6DhXM8JCFMpZAb8gvnTeAM7hwBZumaaMv54FOdZDBIGasmAy6tNz67/mW9vG3dZHJ8 ffbtHcceS6hSnPfXV1YNW24Ny3bFcXrbFybUWiEPQ+Y0JSVvSNiuCP5pab1ZZzlPnZ 5PTnVQRd/81n4yDS/X8ANEooTDanscwLVxOjhfuB+zOXaDRteFUJ8OMoWQz7EawOKi BBEGPLqMvPKYA== Received: by schmee.alvh.no-ip.org (Postfix, from userid 1000) id B202887; Fri, 14 Mar 2025 20:49:13 +0100 (CET) Date: Fri, 14 Mar 2025 20:49:13 +0100 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Masahiro Ikeda Cc: Robert Treat , pgsql-hackers@lists.postgresql.org Subject: Re: Doc: fix the rewrite condition when executing ALTER TABLE ADD COLUMN Message-ID: <202503141949.7lz6ifydmezq@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hello, I have pushed this patch now, with some tiny changes. (I am not a believer of the semicolon added by commit d31e2a495b6f before the word "and"). Also, I didn't think that changing a column type was sufficiently close to the restrictions of column addition to belong in the same enumeration, so the first phrase is now (note the "as will" bit at the end): Adding a column with a volatile DEFAULT (e.g., clock_timestamp()), a generated column (e.g., GENERATED BY DEFAULT AS IDENTITY), a domain data type with constraints will require the entire table and its indexes to be rewritten, as will changing the type of an existing column. Thank you! -- Álvaro Herrera 48°01'N 7°57'E — https://www.EnterpriseDB.com/ "It takes less than 2 seconds to get to 78% complete; that's a good sign. A few seconds later it's at 90%, but it seems to have stuck there. Did somebody make percentages logarithmic while I wasn't looking?" http://smylers.hates-software.com/2005/09/08/1995c749.html