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 1tgNb1-00AA9w-76 for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Feb 2025 12:36:35 +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 1tgNb0-0016z6-Ci for pgsql-hackers@arkaria.postgresql.org; Fri, 07 Feb 2025 12:36:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tgNb0-0016yx-2w for pgsql-hackers@lists.postgresql.org; Fri, 07 Feb 2025 12:36:34 +0000 Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tgNax-004Mly-0j for pgsql-hackers@postgresql.org; Fri, 07 Feb 2025 12:36:33 +0000 Received: from phl-compute-09.internal (phl-compute-09.phl.internal [10.202.2.49]) by mailfout.phl.internal (Postfix) with ESMTP id DC87B13800E7; Fri, 7 Feb 2025 07:36:29 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-09.internal (MEProxy); Fri, 07 Feb 2025 07:36:29 -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=1738931789; x=1739018189; bh=Cz7jdKhCUmW6Fnc2ZBhwSHV1p1LarPk+ Brwf4urQYWQ=; b=pQ4M3vZyaAm2nHDMf7HNvYTIJ+T3uDy1tS8MlAg+1fGDfduM AQpjJTL62GS1hK3zhDJvbSTD5vw94rX7HQwu3p8oWzKB5ZJ2O2fEZx7GOSxA6B5G VL8lQ8Q+GoC/o5Ggt7SdqsOpZ3kxNzPcdnlrsyYn4W9zdBZnIs0BNEIxr7Vn+geK xsWIQqAbIJsllNDRDVROEfFPKGiikbIrvKQx8szMZR8HgvKsGoPhsKQOevPJNngz 7cchr7jtO6yofv2BmrhjuE8CyxE5Ra/LmBu8Hykz5NU63t6+StGkL+/565/6m4Od WRajr+lrLTUyNXVd2x/Yqluoht+GqkupXIUKpA== 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=1738931789; x= 1739018189; bh=Cz7jdKhCUmW6Fnc2ZBhwSHV1p1LarPk+Brwf4urQYWQ=; b=G HcEV+g/tSGY7ZcPf/vjA2D3Mv0m1P//aGEdlQXPUsy+nPpJ2gyUjJ+vy+OSjdVvE lgSI9UY13C7HjBHYYF41QU8oMZa89CGv1APrqi7+1fyLwWzF4vklYbj/Rk+gu6qW 3hTYvYI+8lDeD23k0DaX7+YG0IuoGa55mSvB1tWS6EO0Mj5NwaWkYJtsymDSc+Qk Ndp3wI+gC/4G7nLLNAvleHFuaH3jwWit/iKE5yWzs6XCvxNIgdgyJTPhg9eREEGP 3x2Tv/BchOa20VPqSDkQDBGMgSVzTTOEDASWKVOw1opEeftTXdZgISylf010cYGG 5wczi6WUyDqQ7JR91h1sA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvleeftdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivg hnthhsucdlqddutddtmdenucfjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddv jeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgvrhesvghish gvnhhtrhgruhhtrdhorhhgqeenucggtffrrghtthgvrhhnpefgjedthfekfedtuefgieel heetleejgefhueeltdfhueetvdffudekfeejhfegheenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrsegvihhsvghnthhrrghuthdr ohhrghdpnhgspghrtghpthhtohepgedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoh epvhhighhnvghshhdvudesghhmrghilhdrtghomhdprhgtphhtthhopeguvggrnhdrrgdr rhgrshhhvggvugesghhmrghilhdrtghomhdprhgtphhtthhopehpghhsqhhlqdhhrggtkh gvrhhssehpohhsthhgrhgvshhqlhdrohhrghdprhgtphhtthhopehjihgrnhdruhhnihhv vghrshgrlhhithihsehgmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 7 Feb 2025 07:36:28 -0500 (EST) Message-ID: Date: Fri, 7 Feb 2025 13:36:28 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Virtual generated columns To: vignesh C Cc: Dean Rasheed , 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 14:03, vignesh C wrote: > One suggestion: for the option where the user specifies > publish_generated_columns as virtual (as shown below), could we change > the error indicating that virtual generated columns are not currently > supported? > CREATE PUBLICATION pub1 FOR TABLE t1 WITH (publish_generated_columns = virtual); > > Also, could we add a XXX comment in either decode.c, pgoutput.c, or > publicationcmds.c outlining what would be needed to support the > replication of virtual generated columns? Specifically, it would be > helpful if we could include how to retrieve virtual generated column > data during decoding. This would serve as a reference for anyone > working on enabling logical replication of virtual generated columns > in the future. I think adding support for virtual generated columns in logical replication would require a lot more work than filling in the handful of places that we know about. (Otherwise, we'd already have done it now.) So I'd rather not give potentially misleading or incomplete advice.