Re: v18 virtual columns

From: Ron Johnson <ronljohnsonjr(at)gmail(dot)com>
To: "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: v18 virtual columns
Date: 2025-02-20 14:30:53
Message-ID: CANzqJaC0LCgK1RRKJ=qNTGxgkfFV-_F6keKmCxGBS6EWZ2jjKA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, Feb 20, 2025 at 8:07 AM Dominique Devienne <ddevienne(at)gmail(dot)com>
wrote:

> Hi. I've just read
> https://www.dbi-services.com/blog/postgresql-18-virtual-generated-columns/
>
> and I'm wondering whether there will be a way to ALTER existing STORED
> generated columns, to be virtual? W/o rewriting the whole table that is.
>

What about dropping the existing stored column then adding the new virtual
column?

You won't get any disk space saving for existing records, but it's not
going to rewrite the table.

--
Death to <Redacted>, and butter sauce.
Don't boil me, I'm still alive.
<Redacted> lobster!

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Dominique Devienne 2025-02-20 14:31:35 #XX000: ERROR: tuple concurrently updated
Previous Message Dominique Devienne 2025-02-20 13:06:45 v18 virtual columns