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 1hTvbY-0006B1-Dj for pgsql-docs@arkaria.postgresql.org; Thu, 23 May 2019 21:50:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hTvbW-0000jN-LP for pgsql-docs@arkaria.postgresql.org; Thu, 23 May 2019 21:50:26 +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 1hTvbW-0000jG-Ar for pgsql-docs@lists.postgresql.org; Thu, 23 May 2019 21:50:26 +0000 Received: from mout.gmx.net ([212.227.15.18]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hTvbP-0004zM-Cj for pgsql-docs@lists.postgresql.org; Thu, 23 May 2019 21:50:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1558648213; bh=tnQCxrJ2bNVC6cwPEin2AaXgA7sylMZ7u177wNf0PDc=; h=X-UI-Sender-Class:From:Subject:Date:To; b=KsbeiX/fAhQcLp/ugrAzSw0VVfofNrMtxQA/0wvyMo/r2BWtrBRaZksQMWPethpto 5S+e3T8GzmpdFZ2CLV6xuTpwmSYTXEvTJ9O45Aebu94wjkJg52BaUDEKTTio9VaQ+/ 6u+I0knKPr3ABaogkRwuK66wNrKUhDoAA+RDIyuI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from scnat18.scnat.ch ([212.103.79.228]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MUGe1-1h2oFC29YJ-00RLA9 for ; Thu, 23 May 2019 23:50:13 +0200 From: Tobias Bussmann Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Docs for Generated Columns Message-Id: <071F9108-0335-4309-ACD3-262AF04A1817@gmx.net> Date: Thu, 23 May 2019 23:50:12 +0200 To: pgsql-docs@lists.postgresql.org X-Mailer: Apple Mail (2.3445.9.1) X-Provags-ID: V03:K1:KhBxavA5fTS7gM4rpZ63QsOpJDTUrs+nK4OVFH/kyK/498Odi6G frofAE/RsF2OGPCl61KfcqNfFZcuzBpyW/6wKNY3E09vfEEJonnCEM/rueLQP4otk6TtedA 7PELvHsnF7Xn88jk4ENbAxRV3XM+FZwgo2nLa7IWEKjeZvrYPvv7sZvay0yK2zdHjBjYYtS 7R8+4v42MwFVLmuibTj/Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:exrJcuGs4rw=:oK5dXaZ8qIxHq9qy0AZZdf 4kYR7nQEVh7OSVC7yEdLFFSG4MWBV8lReJHqWREnxTXMJ3BLWvSyVOE3LfMvO7gOUcHFniddI n/gOFc7H768MGckSDvP3sJ9a5c9tLkxBOXwXz5AIM17OTeRypdDjbtWCTpZ2nLmycK4ikxepT cl7q73gjN++fR0TdP2IKDo6xMHkqUicNyNldIsehAvLBI54bwplRC2aI2XNmAKQSuOirJpxAN 3FuSIVeLfKmMSYKi73na3Ofwv/tMqVFeu+wkfYOsxT6VmKgQXboIimPEn0CQOfOVLiETOs6e+ kug8o/lAJuE4iybv4FTz2Dc4afqgDRfUkgbhAXA+ff3N+8857zGoebn1a5PfvsfEkzbLczXey GpmMcqlWN2sDNIeUfXC3OG1mYBH6/Qa1gPUPmRuexj+Xh41EvZxJ1A6wL7ozEDcHplkZisRME fs9MLX6zVkRt65/BnZt1xTZQ4vhzGqm2Wnp+SHl4EC6wqYCwT7DTTJgRAyjqfhgxPL54bW3rT W1lmJaDVi8ObXo6iV33rVTV2Ef1vTsZ+V5PRxIVd+BvWbY/KLMT+YQ024AaFLxevqVJz9VpmR v7/95WTiiM+NLr+O3QdemjExG9bmv2riNDj82M3NagYRQlkHdIBHQXe4G2MkHRf/Ba8v+hN3s qh3fSiBTwAHJ/pXKyE8WcolelZw/Io2y4b/AW8tGbrVCWhUpGTeTu4fD7XT8s/FpYvUHUWldn b6wF+ckl9LlIltbTuTwCYkx5KLqpptWZp5ZJPP8k4xby7Wr27Vd6uRF/Y0ZGd8MYfCCnWCIH5 UWe14j6DRYEh+NXQz3vEjxHhlaDPRgh0BDO8km339Pyh/1OI3ZQtPC8u257YgJD4LbUSe4xOM z7laIkc/veyIckDZOVIu8wW5PPRztWtAW7izlRMM6l7V04/WNTE/EsCuxnL81OFimAKfm77hc tkEiDzEufvvvaU2g9whXI7U4Morlrda7T0uyG+zWH20ubjNNzTRB6 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, while reading though the docs of the upcoming pg12 features, I stumbled = upon some wording regarding generated columns: both in create_table.sgml [1] and create_foreign_table.sgml [2] the = paragraph for the GENERATED ALWAYS AS clause is introduced with=20 > This clause creates the column as a generated column. The column = cannot be written to, and when read it will be computed from the = specified expression. To me this sounds confusing, if not wrong. Till v8 of the patch were = STORED and VIRTUAL generated columns were described afterwards this was = less obvious but now with only STORED it sounds like a reference to the = VIRTUAL variant. Not being I native english speaker I'm restrained to = send a patch but may I suggest the following for discussion: The column cannot be written to, and when read the result of the = specified expression will be returned. Best regards Tobias Bussmann [1]: https://www.postgresql.org/docs/devel/sql-createtable.html [2]: https://www.postgresql.org/docs/devel/sql-createforeigntable.html=