pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <shammat@gmx.net>
To: pgsql-general@lists.postgresql.org
Subject: Re: Model clause and
Date: Thu, 28 Oct 2021 22:47:34 +0200
Message-ID: <cf43c8f1-11d0-6aee-3f61-e1571757441f@gmx.net> (raw)
In-Reply-To: <CAHOFxGo8CyCG35kmqz3pnfTuwQ2fo24BYL0Btg9Q+1NURx4W7Q@mail.gmail.com>
References: <aN2NNEeUoAH5Z51x1lPKFSKcOr-AZ1nmdN5hMfhI4XHWS0F4NEPW1iUcBPV6YbAgUQpLT8RGivaVq18MZO4iHiPxMdJnVlAeNR2XFkeOf-k=@protonmail.com>
	<CAHOFxGo8CyCG35kmqz3pnfTuwQ2fo24BYL0Btg9Q+1NURx4W7Q@mail.gmail.com>

Michael Lewis schrieb am 28.10.2021 um 22:44:
> On Thu, Oct 28, 2021 at 1:57 PM SQL Padawan <sql_padawan@protonmail.com <mailto:sql_padawan@protonmail.com>> wrote:
>
>     I presume that VIRTUAL GENERATED columns are on the to-do list?
>
>
> https://www.postgresql.org/docs/current/ddl-generated-columns.html
>
> Is this not what you want?

Those are persisted/stored generated columns. They are only evalated
when a row is inserted or updated.

Virtual generated columns are evaluated each time you access, so they
could use volatile functions.






view thread (5+ messages)  latest in thread

Message-ID: <cf43c8f1-11d0-6aee-3f61-e1571757441f@gmx.net>
Permalink:  ../cf43c8f1-11d0-6aee-3f61-e1571757441f@gmx.net/
Also on:    postgresql.org/message-id/cf43c8f1-11d0-6aee-3f61-e1571757441f@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: shammat@gmx.net
  Subject: Re: Model clause and
  In-Reply-To: <cf43c8f1-11d0-6aee-3f61-e1571757441f@gmx.net>
  References: <aN2NNEeUoAH5Z51x1lPKFSKcOr-AZ1nmdN5hMfhI4XHWS0F4NEPW1iUcBPV6YbAgUQpLT8RGivaVq18MZO4iHiPxMdJnVlAeNR2XFkeOf-k=@protonmail.com> <CAHOFxGo8CyCG35kmqz3pnfTuwQ2fo24BYL0Btg9Q+1NURx4W7Q@mail.gmail.com> <cf43c8f1-11d0-6aee-3f61-e1571757441f@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox