Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iPNdC-0001Ga-AT for pgsql-docs@arkaria.postgresql.org; Tue, 29 Oct 2019 09:17:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iPNd9-0003JP-6M for pgsql-docs@arkaria.postgresql.org; Tue, 29 Oct 2019 09:17:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iPNd8-0003JH-VX for pgsql-docs@lists.postgresql.org; Tue, 29 Oct 2019 09:17:35 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iPNd1-0006oS-FZ for pgsql-docs@lists.postgresql.org; Tue, 29 Oct 2019 09:17:34 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 81F8F21FE6; Tue, 29 Oct 2019 05:17:26 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute7.internal (MEProxy); Tue, 29 Oct 2019 05:17:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=pHuPYwLCiSXdVCeftAPyiIr92A+MaWAM6nJnANU49 UE=; b=VqsMo4nucdlE+D23kiUNrSKwFbQlOMUj62JYHdlS83B90b0JZ03MiM+ij Fy/mkwAUBapp1Ms914r/h/R8RBlYBo8zE/usshPzPbFg9EspSlrNjTR3hWbyB2eK z/B8KTqR1WSiw2wSSN+f5aIFGN8l2D7SN1bX4iXKjTCOkyjcT/Z8vvfbwN+5ZHjH 3X8bzfbsJAkMj0a2FMNmWGOpAKTG5IYq063jTIpJvNcaE0mhXG/QmyzyJ4PH5UMK 2ktKyfy6E7lYMvlsx7rKoXklfwPhiOtpKpGlAX+HdcWyQ4fSRtY+glxgBH4Gw/x1 idEH4zkxy8BWy4kFcTvurFbav+wKA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedruddtudcutefuodetggdotefrodftvfcurf hrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertd dtfeejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgv ihhsvghnthhrrghuthesvdhnughquhgrughrrghnthdrtghomheqnecuffhomhgrihhnpe dvnhguqhhurggurhgrnhhtrdgtohhmpdhpohhsthhgrhgvshhqlhdrohhrghenucfkphep leefrddvgedvrddugeejrdejleenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrh drvghishgvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhmnecuvehluhhsthgv rhfuihiivgeptd X-ME-Proxy: Received: from april.pezone.net (p5df2934f.dip0.t-ipconnect.de [93.242.147.79]) by mail.messagingengine.com (Postfix) with ESMTPA id 8CF92D6005F; Tue, 29 Oct 2019 05:17:25 -0400 (EDT) Subject: Re: doc correction To: jasonwang.public@gmail.com, pgsql-docs@lists.postgresql.org References: <157230251103.1057.6793271848303174613@wrigleys.postgresql.org> From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Tue, 29 Oct 2019 10:17:24 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <157230251103.1057.6793271848303174613@wrigleys.postgresql.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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