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 1wAnlc-000M8J-1y for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Apr 2026 11:41:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wAnlZ-005Y0r-24 for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Apr 2026 11:41:46 +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 1wAnlZ-005Y0h-17 for pgsql-hackers@lists.postgresql.org; Thu, 09 Apr 2026 11:41:46 +0000 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wAnlX-00000000AoO-409k for pgsql-hackers@lists.postgresql.org; Thu, 09 Apr 2026 11:41:45 +0000 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-488c2690057so7906725e9.0 for ; Thu, 09 Apr 2026 04:41:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775734901; x=1776339701; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=rWK7VKHQ02F7zP11FpZRwVfUhILy2Qu6v+3i4S8cEd4=; b=Qqo86jK3kU/rgHQ9EjITLMQrDpUiN8Jg9NmIEKwALELeoBj7JI4SgJ+dR/aSBCDmGE EFmOtRlJ+Xl4kVp2QOPjmkdIHr2mquiyKvhHqme2yq7eu3oCQSozuVn+CWaRxE5EWctb twOs2uWDZ4D/fqZBo6JWgk5d7FcGcU2LR2nPHJ4JiT4v6xUnHUFf8FiTiEVtZtU1tHeU rBVjslkPuKvb6GGE83kq4toe6cW5GAzdBrDJBbUfN7UfNwU+ds22hTsrTryxvpz971pN Wng0E6bpvq2fU5zbNbGDAHOVPBb9UiAGUs2AhN8TVo65prV0KmtIhJyN/B6A9f5eGHFC dW2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775734901; x=1776339701; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rWK7VKHQ02F7zP11FpZRwVfUhILy2Qu6v+3i4S8cEd4=; b=URKhOYFWlBEtqeMzW6h0Ua2vs9otaEM3FLEgLNfp261g/lLaKzSi75mdo0zCpJDxYR U+GhMr1uErTBDtUBVvX+7b66c4X0gy5eVt/Wt9+8Xlhob9D0NQBMvAvGjTcddoeA1Per +Zxe6u3EZjvjrgYASOMNLlHyKKuZGe89/RCGhlv9GQCj17DWyG7qbXE6qSg9hbp0HwbC sA1Ql20zrqSSUCXdDKOaAE0XPaQG0KTHLvVdsnBcVPk4xF48+YRO1HhibUUvtvJIIieC tH3Rbo7VaOVlPyvSKbYJ89LmOspsoP1ABxRAsmNIrwn5lFco5eKlCnZAQHC9ec3JAUCO y+7w== X-Forwarded-Encrypted: i=1; AJvYcCVsi0adIlZC3c7YWc8HbeRkOEGfZ3oCKs3Fn+ODjrs3Jn8TUPl/bAZ1uE/CGjSGzc3i4I/V72XTLlVTbGOo@lists.postgresql.org X-Gm-Message-State: AOJu0YwtT4dDJAb0UKzrsSuPk2AuJ/JG48p33uUMW/iT306x8aS/snFl sfWivsD9ZpjJXF1RGf1H0eqqqhoW4DXKiMyig6CF6JAHPIOJrnDkm++7 X-Gm-Gg: AeBDiev8U2Ce3lOwz0Msg8PMPq1ok0iUMPwkEQdRMn3FE9g+3CD6FUdOectEX7RYNKi u8OoPSGuNHhL5KcV4xnOxd8evD/DZL4zRra+7kbPjGqpa8zXjhFMLWXbocfzY9umQ/NP2S/65by FUedKcewG9/qSl9d2akTkIVsR85T0NoDrtkTxAhj8vuG/rsLz43zKK3IZYtASQ91zyHRAp66Nl2 CKhaWkcD5v+o7Ho+wPDeJgjRVWW62z+3OFgJ66ccqs/lJdQTBu57PUe5Lq+qmz9qR1qLYOsKri0 7RxCVgzn1iLu+GZ+vlqtvP6jWp+NitZvsIen6ryO5wVxlLQv7YQbzM47lxGiHl+HJ/RlDALfwF+ Ek9DDwqNdrxxLhvuMiQH59FaPVRvDIcHDup/C1UezR7tRRM4I2Of/64sbu5BSYnD8jv4dIFVWNa WpznUPdhjFUuBLd+RC2p2FoZCf0OPqU4yaDQbHFEJbAhephrhALqwQICi7eQFmg6gF64vyjTx1i hsB9LssRbHOLv6q+8L8w3MPo7UAgaUy6VHpLCDdkLXGlJcNmqcy1IUG1Q== X-Received: by 2002:a05:600c:8105:b0:488:a797:f0ac with SMTP id 5b1f17b1804b1-488cd01655bmr46547705e9.28.1775734901230; Thu, 09 Apr 2026 04:41:41 -0700 (PDT) Received: from ip-10-97-1-34.eu-west-3.compute.internal (ec2-15-237-197-144.eu-west-3.compute.amazonaws.com. [15.237.197.144]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488cd1999c6sm35831665e9.4.2026.04.09.04.41.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Apr 2026 04:41:40 -0700 (PDT) Date: Thu, 9 Apr 2026 11:41:39 +0000 From: Bertrand Drouvot To: Peter Eisentraut Cc: Jelte Fennema-Nio , PostgreSQL Hackers , Thomas Munro , Andres Freund Subject: Re: Make copyObject work in C++ Message-ID: References: <2h2n2gyw2f4ucicbl3drtdkjt2wzf6b2r4wqm7xwks6vpx5j7n@imymv4hkz5jz> <5291d173-1227-4619-b8fd-62336ad292b3@eisentraut.org> <6dff90f6-2afb-44a3-9524-b017924d71da@eisentraut.org> <7ddb8894-3939-4846-8d7f-d886b2cb42ab@eisentraut.org> <8f4a2a1e-6142-4481-bc21-76fd33419103@eisentraut.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8f4a2a1e-6142-4481-bc21-76fd33419103@eisentraut.org> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Wed, Apr 01, 2026 at 07:54:07AM +0200, Peter Eisentraut wrote: > 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. d50c86e74375 added a comment mentionning that StaticAssertStmt is deprecated, so we really need the one added in test_cplusplusext.cpp? Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com