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 1w7V70-005NdV-2g for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Mar 2026 09:10:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w7V6z-0093gJ-0y for pgsql-hackers@arkaria.postgresql.org; Tue, 31 Mar 2026 09:10:13 +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 1w7V6z-0093gA-03 for pgsql-hackers@lists.postgresql.org; Tue, 31 Mar 2026 09:10:13 +0000 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w7V6w-000000028yw-42y8 for pgsql-hackers@lists.postgresql.org; Tue, 31 Mar 2026 09:10:13 +0000 Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-38ad26e3992so42175251fa.1 for ; Tue, 31 Mar 2026 02:10:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774948210; cv=none; d=google.com; s=arc-20240605; b=SZJDLa/XsrRV/6AfzEDqSMolpu8XONt1tzeBhmKBwdZn83qVo18gqwq2IkmYqZZHFy Y7qHkwU0CCEkFWXXWF4ImMEJC465fDlyMlk9H/6ERKt2HleR2HtCk1tNjDPd2qymY00y aclCQfi9nG4tBd+zF7xbx40Z8aSQWhAZAfoy3xrFkG64U2wpkCDIyDz6vHa6g/8qnzf5 f3BWz121xrPS1/GLjTeWgnKmsrK6+SoLw1b/sRvf5nxkvTyrrBcIxRdRyMkUbZ3koeCL zPG7pwSflCtJahFZnvBDvcs80pImhvzxmpAzXn2jpbk5z7bO9OuDdqgEbMsfz/WiQin0 wTbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=H8MuBfHOa6iS8NDbD7uUD1+8h2yfQgWC3tnMBRKTX1I=; fh=mKFpe8E1qx4uYTzSWYog0vWi6osg8vhcUhGL+tFQ4jE=; b=W2VbNcqQbVkFzude311zp2eOiAhvxIcZfgBYgAR/M7+1hHOUW6GrE3GrfrwUnx6D/W 6Y/X2vh2891yeBFk6UTlhrh6MZmQm8jhzxYDdc4bzhxxU4EPf5xKzOLeA0HzHJvBO6XW T08DUD7KwvApTzy09Y8vPd3qrZgFN2lHzjT+junFnFL2x08q91WAyTvvR6HF/tLdRmwt 0XhJnQFaI2Ee5w6UWa2TJ+Mrs8Pv78ukuQkYZxfIDXS7NblVlnm/DbXYx/v+4XlNgPwt wbbbmXtXrsgDSKaQiUJTsNE8JP4UUimOZgYLzPl4IDOscB0MS7KaVmrmw3xHf/x5fkvN x73w==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jeltef.nl; s=google; t=1774948210; x=1775553010; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=H8MuBfHOa6iS8NDbD7uUD1+8h2yfQgWC3tnMBRKTX1I=; b=GM7Ub64BihUXG1syThmAwusY3X/gd6aW19QZ9skb3ZbvtYRpED2c58UVGz32iIAn4F paDfTBrJfuk3xp7c3g3NaQGdxAk0yWNx7LV5np4LkXIG/jaoUzr+dD47xk6WLD0lPhdT AKpNEQEelPJIpqZ9IQWcPecZfWYqmPk40PiHl7kiysmd//uaf6TZ9GsKypiOJdJqZFO+ jouQZ6SyYpqGvCTsy+Z6q0hveWSEOvwLBsHyJ2TqX322X90PG28nHS7r2OaeQP3EsS7l m9RfXLwsC1ovOGoFYCj9eNaIl72xTPw1MxrL5HMm2qLkGHf/f1q5xnT/4Q+wp5tbMxyr fx1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774948210; x=1775553010; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=H8MuBfHOa6iS8NDbD7uUD1+8h2yfQgWC3tnMBRKTX1I=; b=kK9WBDKGlb4rbhdM/fm7x+rZZ24LxzXqrcEFaIMWZaT78zR0cMrKeonvoOMi4ui/Vo fVzZLpO6TgXxp5lwSHhHVzR3ze6C9cEZWVGopFR0QvauewmpTcTzfKN71btaHcoiqiYz zYg2qFsKzqapVepKWY1nt6VNPf64TxMcQb53HVmbDQHxJM7mkqNE/3RDF8GGgZLeuZPl YCmUol022eAF+euDkKW/h3r45NFNin1wNwJi+qCkXW+P+N9JFit27VOfyQ7teByB0cG/ 95S7EsRv7DXAspTqjdlBVB1jv0SMdob7g+rAmoqP5XX+5dYqgcbSiSHv11E4fJh7W47t KNXQ== X-Gm-Message-State: AOJu0Yx1x6Ujlpg8kLJ9WZMYCQXcOh+2n9HO6O5KfJJBCpLuZw8oRrJE n5AEIdDVvNgR76R/5IZTtiosYN0RhFRNV4yp62LgwgyYGdgIbA1lVeGH5LlqaNMJZzwM5h7Izsl bet7V4tQGbOdhNp4G7ggJnUtb0vgm0qpyDRVfG7rkAw== X-Gm-Gg: ATEYQzweuVzB2/L805ML+kbn45rvur2yN2gocpZ1R+4/xmU84c17cMVRAX8K4bePtsU KjKrOzNNPJ7YndkO7QXNfqk4/8pZ3o0RDirZ3eWjsLdPYrTiDUGqqGykfibnKkvIcKmKlEHsK2B n74WPuj9JabI4W9BiKDRu7XwMcAHFaqZCxnxuRSDOdfxlLW+TXHW3153WPsdSIsAFPz0xMshn8c dq/2AnqPwGO69cqmizBW0Yup3gSfUAiheJau3Xb7PW12Cr6QYg2dswuhudpwBgd/e2i4NxEkZXh efFSZUtZ X-Received: by 2002:a2e:8a94:0:b0:38a:3bfe:3c5a with SMTP id 38308e7fff4ca-38c730c49bemr48098001fa.5.1774948210458; Tue, 31 Mar 2026 02:10:10 -0700 (PDT) MIME-Version: 1.0 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> In-Reply-To: <7ddb8894-3939-4846-8d7f-d886b2cb42ab@eisentraut.org> From: Jelte Fennema-Nio Date: Tue, 31 Mar 2026 11:09:59 +0200 X-Gm-Features: AQROBzAlU2tEB2ITLnsWwiD5ZgJp_iLDPFQGdOyK8Q_6ilMgsQ22e28UT5lc9Rg Message-ID: Subject: Re: Make copyObject work in C++ To: Peter Eisentraut Cc: PostgreSQL Hackers , Thomas Munro , Andres Freund Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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.