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 1ryzcS-001R7S-2A for pgsql-general@arkaria.postgresql.org; Mon, 22 Apr 2024 19:46:28 +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 1ryzcQ-00ENRe-D1 for pgsql-general@arkaria.postgresql.org; Mon, 22 Apr 2024 19:46:26 +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 1ryzcP-00ENRV-UU for pgsql-general@lists.postgresql.org; Mon, 22 Apr 2024 19:46:26 +0000 Received: from mail-oa1-x36.google.com ([2001:4860:4864:20::36]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1ryzcN-0048Ws-7g for pgsql-general@lists.postgresql.org; Mon, 22 Apr 2024 19:46:24 +0000 Received: by mail-oa1-x36.google.com with SMTP id 586e51a60fabf-22ed075a629so1894731fac.3 for ; Mon, 22 Apr 2024 12:46:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713815182; x=1714419982; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=TAK7KPIy9FLYeSRGWUTrDfGYVeRDNRc/uDwTZsq8QxM=; b=ltVdjGq3p5C0FrA1HS2vQ7oUmT/+0E0xvwrQ5HaIgdGfNPz1KBmH/baIbXhxMam2rK iUsTY85LI5FSFU6eD9CxcjP973o82yqiikVSQgxTVu0pM6u2H0tuZpTP9jM+x4SbgPKO zFACNHWXEX4zhGtPdzIyKsB45hBj92IT+sjOhUHkUeiVaeIAFq0kQWyMxJH/w+QHWn4m yiifHxk9Tl6QFDYVLKTBDxXtzLrlh4rABQrT2aZXT0XXCFsWVfrcI4+WlzNXsk8JYP2I W0NW7vrRjMhaPybyz9zP9iU5CuTZ/SItgRwEtf9tGrxC8M1cCKkgcY3GFW5HJE2oDAVZ E3fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713815182; x=1714419982; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TAK7KPIy9FLYeSRGWUTrDfGYVeRDNRc/uDwTZsq8QxM=; b=tMjdfFGQCEwN/zGGsvHP07jbPhP/VVd+H2nFM2uMe5gzviMog74poSGmCGJMfViU35 idxSPPKnEl4SlIg7VuSr/YNSImO19rN3EQJdngWIid24VdStG48X+NCImd0+8xCMPtXP BSawvWuBxoLbuT6GPAPuVovKUllF+3y/NHm7GDDp1ZX2gzr4tOmD4ExhXfaL5pMauaR5 T6pQSrIjMsZ27TP7zsGTxWC8gFrQKCrNUMw/oyJr7aqQ6S8r0Lb/cCgXUEn0cE0vF6hl NI5d7YG80GK09tFOgkTDSvDrysVQBZkcO2fMKDUyqyZvrCVX2ATa9/14W5hnQSWWiwgW EMFw== X-Gm-Message-State: AOJu0YwEduvG4brApQOpj62aQNoscfc5IOqjog7cXOfZXNj4GMBlUrMI 1tqgUlhO06hzSQfAHuV4mc+EZkkAUXJWGyCQxY+Gvz2xn3gZCOx1tV3KyBd3KyfVNcZiBIlBUr3 9YyuyTz2Nh1PupWaBp6fzZm1kAEAcdJtP X-Google-Smtp-Source: AGHT+IGYgZe5B0xpADm/kMGL8x/oNUletVvpSEanqDaJWV5NqEQsKL0D1VV3gPdTvOF0cgoTWA0syyv4TwuJrWJk6v0= X-Received: by 2002:a05:6870:b9ca:b0:22a:508a:66e6 with SMTP id iv10-20020a056870b9ca00b0022a508a66e6mr13709009oab.17.1713815182361; Mon, 22 Apr 2024 12:46:22 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: "David G. Johnston" Date: Mon, 22 Apr 2024 12:45:46 -0700 Message-ID: Subject: Re: altering a column to to make it generated To: Celia McInnis Cc: "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="00000000000027cae30616b4b142" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --00000000000027cae30616b4b142 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Apr 22, 2024 at 12:42=E2=80=AFPM Celia McInnis wrote: > Can I alter a table column to now make it generated? I tried this > unsuccessfully: > I looked at all of the "alter table ... alter column" commands listed here: https://www.postgresql.org/docs/current/sql-altertable.html And none seem to involve the generated expression column. So the answer is no. David J. --00000000000027cae30616b4b142 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Mon, Apr 22, 2024 at 12:42=E2=80=AFPM Celia McInnis <= ;celia.mcinnis@gmail.com>= wrote:
Can I alter a table = column to now make it generated? I tried this unsuccessfully:

I looked at all of the "alter table = ... alter column" commands listed here:


And none seem to involve the generated expression column.=C2=A0 So th= e answer is no.

David J.
--00000000000027cae30616b4b142--