From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: jasonwang.public@gmail.com
To: pgsql-docs@lists.postgresql.org
Subject: Re: doc correction
Date: Tue, 29 Oct 2019 10:17:24 +0100
Message-ID: <d3619b02-fb8f-e04f-d01d-9654526ccfe0@2ndquadrant.com> (raw)
In-Reply-To: <157230251103.1057.6793271848303174613@wrigleys.postgresql.org>
References: <157230251103.1057.6793271848303174613@wrigleys.postgresql.org>
On 2019-10-28 23:41, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/12/ddl-generated-columns.html
> Description:
>
> https://www.postgresql.org/docs/12/ddl-generated-columns.html
>
> In the below
> "Consider the differences between a column with a default and a generated
> column. The column default is evaluated once when the row is first inserted
> if no other value was provided; a generated column is updated whenever the
> row changes and cannot be overridden. A column default may not refer to
> other columns of the table; a generation expression would normally do so. A
> column default can use volatile functions, for example random() or functions
> referring to the current time; this is not allowed for generated columns."
>
> "a generation expression would normally do so" should be changed to "a
> generated column" for easier reading
The current wording seems more precise. It's the expression that does
the referencing, not the column itself. There could be other things
attached to a column to could reference other things or not.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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 using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: peter.eisentraut@2ndquadrant.com, jasonwang.public@gmail.com, pgsql-docs@lists.postgresql.org
Subject: Re: doc correction
In-Reply-To: <d3619b02-fb8f-e04f-d01d-9654526ccfe0@2ndquadrant.com>
* 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