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.96) (envelope-from ) id 1w7oWx-005ieN-0Y for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 05:54:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w7oWv-00F5kf-28 for pgsql-hackers@arkaria.postgresql.org; Wed, 01 Apr 2026 05:54:18 +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.96) (envelope-from ) id 1w7oWu-00F5kW-2N for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 05:54:17 +0000 Received: from fhigh-b7-smtp.messagingengine.com ([202.12.124.158]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1w7oWr-00000002Ip0-1yvg for pgsql-hackers@lists.postgresql.org; Wed, 01 Apr 2026 05:54:16 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfhigh.stl.internal (Postfix) with ESMTP id 6CA2C7A0338; Wed, 1 Apr 2026 01:54:11 -0400 (EDT) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Wed, 01 Apr 2026 01:54:11 -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=1775022851; x=1775109251; bh=Olql+0y1H6LWGJXhRcHlF8LDHSFmO9TG lfcg4lxI7uk=; b=pIb2DB9lOsAnuZ8SK22vjVm6+09mlTOdTOAqUU9p+T1zrnnt c+gTKkOxDAU1jQb5t6fZmsvPgKPVNwgJu5GqNtsZW1u65f/+6A/7cACBaJrnQvtd 4wpOM142XXth8A82d3uzY/PoyLH1bcRtaH3/BWp8uADJYTtF7/+/D9TwPD84I2B5 5pcsc9ygQ3KvT3oc7fLyAmFEqjUrbgxz2iPviporD9uPK9hFgJ/geXtjWkYon0XO NTgMaiiZNYHROK0wGZmT6Biq3NN/pF1AsePCINg6BCujdTC1ZHHHcBbf0g+4QrsR YD15Zj1MaAO5W3Ksc4ITYljT+EQ4EopxgqwDVA== 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=1775022851; x= 1775109251; bh=Olql+0y1H6LWGJXhRcHlF8LDHSFmO9TGlfcg4lxI7uk=; b=X TKjnJF5j/G1a1BtUGoCQVNakyb+xvRXR4ZMQ5YPOn+9Ho1vedaSyThVhDComPEVG CUjyflOx3J6fR8xG53Jq0T1AnJr7C9GUG73yg+GFEeUXxST1A0eMlXsG1aq6t3wI Gm62I0+nCkm4HIXAYmYqZqfHpLlj1/r6c8T2srnro2sFzi6HPPf0gosNGzt/1DSo HdlR3+LQhncBWjrz06riX8pqZ1emB78y9JpH6tcYZOFT6MW+Bhd9EdgasHAUk2Ma L4BlUjacDZHfw8O1VcqIFvwetZf/BTxXCfPJA71tf0NhtUlcONTytKc2quPdzOs8 4qehLViw399tsXCtxaRJg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefhedrtddtgddvfeduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh epkfffgggfuffvvehfhfgjtgfgsehtjeertddtvdejnecuhfhrohhmpefrvghtvghrucfg ihhsvghnthhrrghuthcuoehpvghtvghrsegvihhsvghnthhrrghuthdrohhrgheqnecugg ftrfgrthhtvghrnhepgfejtdfhkeeftdeugfeileehteeljeeghfeuledthfeutedvffdu keefjefhgeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepphgvthgvrhesvghishgvnhhtrhgruhhtrdhorhhgpdhnsggprhgtphhtthhopeeg pdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehpohhsthhgrhgvshesjhgvlhhtvg hfrdhnlhdprhgtphhtthhopehpghhsqhhlqdhhrggtkhgvrhhssehlihhsthhsrdhpohhs thhgrhgvshhqlhdrohhrghdprhgtphhtthhopehthhhomhgrshdrmhhunhhrohesghhmrg hilhdrtghomhdprhgtphhtthhopegrnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: ie0a040ee:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 1 Apr 2026 01:54:10 -0400 (EDT) Message-ID: <8f4a2a1e-6142-4481-bc21-76fd33419103@eisentraut.org> Date: Wed, 1 Apr 2026 07:54:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Make copyObject work in C++ To: Jelte Fennema-Nio Cc: PostgreSQL Hackers , Thomas Munro , Andres Freund References: <4d8b9e53-3f37-43f0-a4aa-5bda9c7961b3@eisentraut.org> <4e82f77b-acad-4356-94f6-8255135fb36b@eisentraut.org> <2h2n2gyw2f4ucicbl3drtdkjt2wzf6b2r4wqm7xwks6vpx5j7n@imymv4hkz5jz> <5291d173-1227-4619-b8fd-62336ad292b3@eisentraut.org> <6dff90f6-2afb-44a3-9524-b017924d71da@eisentraut.org> <7ddb8894-3939-4846-8d7f-d886b2cb42ab@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 31.03.26 11:09, Jelte Fennema-Nio wrote: > On Tue, 31 Mar 2026 at 10:33, Peter Eisentraut wrote: >> Hmm, note that C++ is also used for LLVM/JIT, and by requiring this >> additional feature set we are also imposing new requirements for those >> users. This has not been fully explored, and I hesitate to add such a >> new requirement at the last moment. > > I understand the hesitation, but in practice we already impose those > requirements anyway for non-MSVC compilers because test_cplusplusext > doesn't compile without it. So any compiler that would cause problems > with the new featureset would have already complained about that > before. > >> But how about this: We add the feature test that you propose and enable >> the extension based on that. See attached patch. This reduces to >> essentially a three-line patch, much simpler than all previous proposals. > > If you're still worried, then this sounds like a fine middle-ground > for now. I think we should reconsider adding the automatic /std:c++20 > flag for the PG20 dev cycle though. Ok, I have committed the shown patch.