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 1tyALp-003Hcy-RT for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Mar 2025 14:06:25 +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 1tyALo-00An59-J0 for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Mar 2025 14:06:24 +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 1tyALo-00An3f-8U for pgsql-hackers@lists.postgresql.org; Fri, 28 Mar 2025 14:06:24 +0000 Received: from fout-b5-smtp.messagingengine.com ([202.12.124.148]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tyALk-001dLK-0Q for pgsql-hackers@lists.postgresql.org; Fri, 28 Mar 2025 14:06:23 +0000 Received: from phl-compute-10.internal (phl-compute-10.phl.internal [10.202.2.50]) by mailfout.stl.internal (Postfix) with ESMTP id 20EE2114012F; Fri, 28 Mar 2025 10:06:19 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-10.internal (MEProxy); Fri, 28 Mar 2025 10:06:19 -0400 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=fm1; t=1743170778; x=1743257178; bh=n148nZGUEnwYUtCii36QgWS+Af0fYqDJ UwKF1xssqOQ=; b=U+ZRFgdvhFjc2FSWPW/lM7KACcdmPjezl4S5pSd3/EqvpCbK 4vcu2vaKOxdPzD1/QhcWHbgyY+9TiHlEDpdjW2GSpZQ0ZQcGt3KW/8LbdilTv1a3 7RO5lJvQfjZ2/OxLO8aYIn6krU9yK4XHJh0h4HKrAOmpkNBMJ2SrCs2AwObIO1+o I5Do8SyHsIm2n3JLM4ZJDgOOgEKZkJjvV1MZhRQSLf8BpVaDQtLi9jYUmr4Kx/YH ppx2T6ZLz5nPgvfnviZH9R7d1dgvZjJsn0Zb1ES9M5jQP88ADlwcNKcLFLZJ+RJH qeP3RYMITu6Zfd3k+Ar+zWRtRRRwd7iGj9S9Lw== 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=fm2; t=1743170778; x= 1743257178; bh=n148nZGUEnwYUtCii36QgWS+Af0fYqDJUwKF1xssqOQ=; b=C 2zKergbcHlLHJT8WO2SVqDHkI1xUHVNJDHfrUtiqai+RK763lY+p3hF10fctu3XG 4gj8fxv/kakX8abNVDjSis6U+J5XZiAVXigGMJqTuARfMZ1sgTiCRsqMFpmf8Ogt Guji/5CMoXGzaUXOqfX8g0jx0xUEGav7x6CLX/dnBIUU3MyoyORpi4U2msHoUoXV Dnr6NyeV0lvX9BWEB83kDgKh68lJW7skSulP4otDomBB7kVV7HEAqGBEZnYOs1xi 631/BJmdyKCQlBaDM7fnF8Ng7DwlDzveiW4Li+3vyOoA53fEKQsajXNmBqQDr2h1 JXGy4hzZj8fepAR0JR0Qw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddujedugeelucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddt vdejnecuhfhrohhmpefrvghtvghrucfgihhsvghnthhrrghuthcuoehpvghtvghrsegvih hsvghnthhrrghuthdrohhrgheqnecuggftrfgrthhtvghrnhepgfejtdfhkeeftdeugfei leehteeljeeghfeuledthfeutedvffdukeefjefhgeehnecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepphgvthgvrhesvghishgvnhhtrhgruhht rdhorhhgpdhnsggprhgtphhtthhopeehpdhmohguvgepshhmthhpohhuthdprhgtphhtth hopehjihgrnhdruhhnihhvvghrshgrlhhithihsehgmhgrihhlrdgtohhmpdhrtghpthht oheprghlvhhhvghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrghdprhgtphhtthhopeiguh hnvghnghiihhhouhesghhmrghilhdrtghomhdprhgtphhtthhopehthhgrnhhithefuddu udesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlih hsthhsrdhpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 28 Mar 2025 10:06:17 -0400 (EDT) Message-ID: Date: Fri, 28 Mar 2025 15:06:16 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: support virtual generated column not null constraint To: jian he , =?UTF-8?Q?=C3=81lvaro_Herrera?= Cc: Xuneng Zhou , Navneet Kumar , pgsql-hackers@lists.postgresql.org References: <202503211018.lsboinfrjn7w@alvherre.pgsql> 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 24.03.25 04:26, jian he wrote: > rebase, and some minor code comments change. I have committed this. I did a bit more editing on the naming of various things. In terms of functionality, in ExecConstraints() notnull_virtual_attrs and virtual_notnull_check were redundant, so I simplified that. I also cut back a little bit on the assertions. They were all ok, but I felt in some places they bloated the code quite a bit for no real gain.