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.96) (envelope-from ) id 1wytly-003hEk-1X for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Aug 2026 16:13:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wytlx-008sMp-1C for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Aug 2026 16:13:13 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wytlx-008sMh-01 for pgsql-hackers@lists.postgresql.org; Tue, 25 Aug 2026 16:13:13 +0000 Received: from mail-ed1-x536.google.com ([2a00:1450:4864:20::536]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wytlu-00000001DGd-3Gkm for pgsql-hackers@postgresql.org; Tue, 25 Aug 2026 16:13:12 +0000 Received: by mail-ed1-x536.google.com with SMTP id 4fb4d7f45d1cf-6a15d54ac95so8735136a12.0 for ; Tue, 25 Aug 2026 09:13:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787674387; x=1788279187; darn=postgresql.org; h=in-reply-to:references:from:cc:subject:to:message-id:date :content-type:content-transfer-encoding:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=DacBLw32xGMzTTIidx/mYEGu9wED9/C3Jn4q5Q8XYhM=; b=W5vcX4zYNfuzsBw/IOLCOGvruAW58MfmYK25EJMduNr/wUwcCREJHffDRtRp7yGM2z 41YYN1eoPMSJkmgTkTb2C77sIkVXhaBWDmHBrZxxb803q6VbHPy+ZQY8IDnuSKRyGnS9 tftPBT9vDKvszuLyDiI4+ESS34mWx98JmY+yvYvJz6LQWVFoLaaj0vVRoLCzSNjvrH9L k8mgEfiJbc/vNULOA5k+FOVPcnW6Vdh2KdDVySdXe0EXaymY+Faozs/Dm1BsCgj09s6c Hhbwpp9esDkS88TA6b4YtV1XL4joect+mkYZNPlLBk/uLQl8J3urNx+xSOZ1Q9T3d4gx ADBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787674387; x=1788279187; h=in-reply-to:references:from:cc:subject:to:message-id:date :content-type:content-transfer-encoding:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=DacBLw32xGMzTTIidx/mYEGu9wED9/C3Jn4q5Q8XYhM=; b=F3CBdnwpPbIh5vCIlV2bpG2vHMO+q/Ll8RxyaFTbfJsV6Nf4PjrjdPdraAiL3sbBGm 2N1vBiV8LwhoRy1H0YI+uwj0kLJSGaVSaQAMZQE4Htqj50XsS8bWyzKkrGlPKXU+aEfN IYgwtGrQxBZmay4ieA0fF9vWbdKlPyJOT3KrUsMRadISbFnxLVKgR3sfltY45NzPGrBU l2vh15wx2mXUfcXR2mrk81O5EzJCywn7MHFoJ//lQiVbnRJowAQonCsYF2pICnMQhHek hdO2z5GGaHQGB+BXU58/m4RiZQNpgm2kv1fd7LjFfWDrHEB6lNhHmaAqIff2Dr5B7flS xTXQ== X-Forwarded-Encrypted: i=1; AHgh+RrJMM9iHZ9emN9a11E3LXd7pW6eVAu0z6copoaBGOWdzHjov0LFOXutA0cpNkC2v2QFuGdK0bTyI6n+iHXy@postgresql.org X-Gm-Message-State: AFuF++lRB4ziiz+4dgzv6vtWzbd/fsafa2jk1RorQxeEoydcvEBlxI5M sFqRlky3zxYGk7YgKH1uG4s53nSjA1cNNeXLMt4TK2zX9OGtEyABNwHVy2e8Ao09 X-Gm-Gg: AR+sD10TCXdxhpuXWiGMOeLQUtuHGEVDWddQmS8U4YY4CMdiPSwv6EGiwiP1NvQe9j2 Pu7g3eaVPY26DiEdw0smgvjpiumWE99lLAQR43SYTcH1cD/d/9jveSbTASSS+86MGg6YeEoP+37 HHcIdnMh216Mubom84eppoBhVhXUT/OFs8Wy4k3SDNO69fe7P2dkExTUK1bFzhQEWtS0RtU1jqi MVH/1Z8nyT+hSW6XnHLg5U3WNYAFg9f8E2ijJ/GJWyAjpHV9CpfXKSENr0tUEU23TTf67i2Dmpr RIKNxpJ70HHS8HVJuyj0NQMHr+D4QclsMFUldaKHb5NjWUcyW2Ei4iQUtAHPbXor0jxW47sr0os 72W/9qiwxybwHCdP1G+o5eQYi6+xaG9NSW4nnoS69YrDy07mTCAAcDdgmDisZY/MCAHgUJL8nbd CXzz+ogOSelrHvAW4EnCGHhn/cWCdCXK17L0rFt8+w4XYxkJl5q/X0lwayvH1/Os5XddYE3PxPW ErgU+8= X-Received: by 2002:a05:6402:5042:b0:6a1:fec6:3307 with SMTP id 4fb4d7f45d1cf-6a582b1c3dfmr29432141a12.7.1787674386380; Tue, 25 Aug 2026 09:13:06 -0700 (PDT) Received: from localhost ([2a02:169:191:0:d968:3f97:ae59:a5b9]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6a5deb0277bsm251081a12.30.2026.08.25.09.13.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Aug 2026 09:13:05 -0700 (PDT) Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 25 Aug 2026 18:13:05 +0200 Message-Id: To: "Laurenz Albe" , "Alberto Piai" , Subject: Re: Adding a stored generated column without long-lived locks Cc: =?utf-8?q?=C3=81lvaro_Herrera?= From: "Alberto Piai" X-Mailer: aerc 0.21.0 References: <3af338791e8ab27c4a7efbc4217c97162de76bc8.camel@cybertec.at> <2eb68e74ea95fc2f691de7d8cd28448d00d1d216.camel@cybertec.at> <79b63e772179abb4f5ad749d9e067d48a5537599.camel@cybertec.at> <6f5ea02f6e5205a96a9b3979190a4d7cb3c99414.camel@cybertec.at> <86a9336dc25d9a085916ad247a5791dc53d2ab13.camel@cybertec.at> In-Reply-To: <86a9336dc25d9a085916ad247a5791dc53d2ab13.camel@cybertec.at> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue Aug 25, 2026 at 10:46 AM CEST, Laurenz Albe wrote: > On Mon, 2026-08-24 at 22:03 +0200, Alberto Piai wrote: >> > I was wondering about this hint: >> >=20 >> > =C2=A0=C2=A0 Use this command on the root table/partition without ONLY= . >> >=20 >> > You can never turn a column of a partition into a generated column, ri= ght? >> > How about >> >=20 >> > =C2=A0=C2=A0 Use the command on the partition root without specifying = ONLY. >>=20 >> Since this is also taking care of classic inheritance, it seems strange >> to only mention partitions. But I see that this way it's confusing (and >> I do concede that partitioning might be the more widely used of the two) >> so I switched it around to "on the root partition/table without >> specifying ONLY". Does that make more sense? > > My problem is that there is no "root partition". Ah, I see what you mean now. I agree, "root partition" makes no sense. So, removing the slash, it would look like: ERROR: cannot convert column "c" to generated DETAIL: Converting only part of a partitioning or inheritance hierarchy = is not supported. HINT: Use this command on the partitioning or inheritance root without s= pecifying ONLY. Maybe a bit heavy on the eye? Since the root of the hierarchy is in both cases just a table (partitoned or not), what about just calling it a table? ERROR: cannot convert column "c" to generated DETAIL: Converting only part of a partitioning or inheritance hierarchy = is not supported. HINT: Use this command on the root table without specifying ONLY. Regards, Alberto --=20 Alberto Piai Sensational AG Z=C3=BCrich, Switzerland