Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tgNaN-00AA4W-E9 for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Feb 2025 12:35:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tgNZN-0014Yt-Rs for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Feb 2025 12:34:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tgNZM-0014Yk-GC for pgsql-hackers@lists.postgresql.org; Fri, 07 Feb 2025 12:34:53 +0000 Received: from fhigh-a3-smtp.messagingengine.com ([103.168.172.154]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tgNZK-003kiT-02 for pgsql-hackers@postgresql.org; Fri, 07 Feb 2025 12:34:51 +0000 Received: from phl-compute-04.internal (phl-compute-04.phl.internal [10.202.2.44]) by mailfhigh.phl.internal (Postfix) with ESMTP id 15D0911400C7; Fri, 7 Feb 2025 07:34:49 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-04.internal (MEProxy); Fri, 07 Feb 2025 07:34:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eisentraut.org; h=cc:cc:content-transfer-encoding:content-type:content-type :date:date:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:subject:subject:to:to; s=fm2; t=1738931689; x=1739018089; bh=rs7/YZ/EatQ7i8rDaeQy478uByRt8Cpi XUTwz3afTxA=; b=7bsybbnwfQ4+dl7bMK3sGgz849oaf/RuKWUvPjR3UjIvz6HU zSZ6uZ+CfaOz2pA7jVMDT+T5cUBBbEVqFTBcos06bnEo8F7jKXacbwNi8WQs79qE 4jsCUDAek8SNz1eTd64nf2onOQ65YcnW9phWurxnFkm4n3GTcg9TGGGvFejcMql9 1bxGKTfxKn0ecHQok0nFzVHh/C+GJJBfuNKtOP0VSHOifyuyPCVJHqWZo5++5XrX d57mmHYRlCmCou2NXC3OZVZzI0KfZOk26ZY9XfTpAeYPGjN8nyHV68gSvdQWPElu ShYJ3f1NCLDpNblA1xaKPDgK//LzEB2cNtcutA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1738931689; x= 1739018089; bh=rs7/YZ/EatQ7i8rDaeQy478uByRt8CpiXUTwz3afTxA=; b=z vS8AmIjTjvKjiqRRKuADJvU3sN0HTeEeaZCvlglGRw98/nLfcwgz6NK9ggE0HQxl 8zVUjFnzRay30ToeUmxhv0zHK4JXsOHEBS0ZL875nZvUL7SNWdkXYzByL4RVRVno 9VFFpE3CODdYd+79RJZ2GQR+0mLN4QSTdXU4ja32yxfn3axHU3726DzNmn8B3+tP gFhIIRlR1KV8HCWU9s6Z0pPqIJH6ddd8THB+TreRv193L2OcLV+zfKuVl3XStWWv 6F6lhfltwH8EG0j0oOw1obEV19isw0Ek+0lnQEFb7Lz40ifZTq6FPkYwUHIxjz8s 1UwSDsdy2wAlL5yZ2A4rw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvleeftdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddv jeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhesvghish gvnhhtrhgruhhtrdhorhhgqeenucggtffrrghtthgvrhhnpefgjedthfekfedtuefgieel heetleejgefhueeltdfhueetvdffudekfeejhfegheenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdr ohhrghdpnhgspghrtghpthhtohepfedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoh epuggvrghnrdgrrdhrrghshhgvvggusehgmhgrihhlrdgtohhmpdhrtghpthhtohepphhg shhqlhdqhhgrtghkvghrshesphhoshhtghhrvghsqhhlrdhorhhgpdhrtghpthhtohepjh hirghnrdhunhhivhgvrhhsrghlihhthiesghhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 7 Feb 2025 07:34:48 -0500 (EST) Message-ID: <8be3512a-a23f-4088-a9ec-bf68650a2997@eisentraut.org> Date: Fri, 7 Feb 2025 13:34:47 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Virtual generated columns To: Dean Rasheed Cc: pgsql-hackers , jian he References: <09800cb1-43aa-4239-8918-46b71ede4900@eisentraut.org> <536b281b-2cb3-4477-971f-c64838bc6263@eisentraut.org> <51875199-d5f5-41ed-92dc-3e7b1b996991@eisentraut.org> <84adfb1b-826c-42b2-a907-b327d3760c7e@eisentraut.org> <831d7f99-0618-48e5-8557-f3d57137f339@eisentraut.org> <64c2468c-3b69-44d7-863a-165931a70c1d@eisentraut.org> Content-Language: en-US From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 06.02.25 00:25, Dean Rasheed wrote: > On Tue, 4 Feb 2025 at 22:36, Peter Eisentraut wrote: >> >> Yeah, this is quite contorted. I have renamed it like you suggested. > > I looked over this again and I think the patch is in good shape to be committed. I've committed it. Thanks. > One thought that occurred to me was whether it would be better for the > psql describe output (and maybe also pg_dump) to explicitly output > "virtual" for columns of this kind. I know that that's the default for > generated columns, but someone reading the output might not know or > remember that, so perhaps it would be helpful to be explicit. My preference was to have the default output format use only SQL-standard syntax, not extensions like "VIRTUAL". If people hate this, we can easily change it.