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 1w0yVN-002NX6-0B for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2026 09:08:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w0yVL-002jty-1b for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Mar 2026 09:08:23 +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 1w0yVL-002jtq-0f for pgsql-hackers@lists.postgresql.org; Fri, 13 Mar 2026 09:08:23 +0000 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w0yVJ-00000002R6K-1j61 for pgsql-hackers@lists.postgresql.org; Fri, 13 Mar 2026 09:08:23 +0000 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-5a12c19affeso1337602e87.1 for ; Fri, 13 Mar 2026 02:08:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773392900; cv=none; d=google.com; s=arc-20240605; b=GHIyv5tLX0Gu+U7gRQxiqrLZATF57E/xAvUcs2ZqJY8YUHW624dyFn1Md1Wb34Y2pK 1mapsKzhOaDXG44HqkIt27AbCz3jOfmZuA4OOTgwFq8ECPUnOUzQoZtGb5wU2WHfQ7hY ZDdlGo8Ralq6zdIsj9/BM6lNqHwzmp564Va+BDxrkBZl64q8zbjjraIM036IwmeMzU9Q tfQlrukwUgtCPpvEVnoz4CQGeDzhOUcjh8GKrmJh7AZJH3KPzTAc4hNiQsdwVt7MlgEF rYm9nZdU3T4s2vLi6gVzg8Xb/xho2m1gowwbq65br1Kxa3bJxKl8f5pkFh6YXFxHf7xk KLJw== 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=YOD7X7aoLTClKjgEo/ivtZYZDLllGTF/FCf/z8SyofA=; fh=fNScDtG8CJh5BAxSVP5V7poe05PWwEYJJ8/y3GChxn0=; b=aFpHFi7V9Gf1P7E5l2k2mxCxpduxgo98fh3d5VMAxmLNl/KOWKml0njUbBr2kUdYOt aUzwl24FEKHsMZdBgbmjKvE9kWqx3fDc6BIsFAXudVwys9oabcLGTlDJXGp+zhkd5CTi e+kOYTGfejkVnNlWtiFDEd7MB8oeoX9nLPUMMfQtgDGV9CU62NrsZmGeXfWX4SLwWjAp 40+pApS/v29pUO4XMqAR+rOhSgkUjtngfwLRC1vDozv6LuNppdkl1y1xvnIn8jtfzWjd Fn8+8Cbak1/4wOjHf5WmEQSOn36eXuFavnm4HwPk1QtKySAPIMnt3fbhWpgFl6WTRHkG RFrQ==; 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=1773392900; x=1773997700; 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=YOD7X7aoLTClKjgEo/ivtZYZDLllGTF/FCf/z8SyofA=; b=WEckCOszKS7DFSLR5taghImzrUiGuSIHHG2cJRUpIxkn1DfMaPhzpVjHoQ1yj773sR yea2VilT7TdgKQ+4OR8kfNaAE4wAY/JMuRaUMpjFXfd8Q2uNZyLzuKPhQkgk3Dqg2lC7 Ihxv15PmbKzvy9PBpw2zPlIs3gnIQhj7ym5GmFkivX7MVKTtTyeCSEkh9My1HgtThLcP PNJ2DQ4u/UDICti40/FCtWSZlOy370SpJXz3caypse25/WGJ1KGKbK59YgBu4zEv5Hs4 rfs0+aign1w1r0A8367pM0DRfybI7wExKKEhjOScGTvO4A0RpPu3Nwbsnc2C4qAc/Poi gsBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1773392900; x=1773997700; 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=YOD7X7aoLTClKjgEo/ivtZYZDLllGTF/FCf/z8SyofA=; b=naRzk/A30gEiwbL/g/Vi7PYNmNqnRFCO5kQgLFdeFjZtw+Se8VNFKP0KW32EmDPvPa ICMNcgXba3aHw5539FRjUsFnmxosLdDbzxPGRZqef9RyuMKu8b25M4e9MiV6Oib7s0cj YYENsIDC90qptxbg4yXVnWuHvlJZpU/K+Dg26jFYSLuS8AVkv/iiVXIBbB8NosW49Ggf 2RvOwxe8O/wLN8xLiO+0yK5dPcIxhqhu3w7RAPGzuXV6atwHmR2F4+smTy5ctQN4T/9z F9eFtF14Ec1hMKTtf2BBS/Zp6Enh6GbAb3UNW3iE5Yw7JgS8hzptA3uWVbRiDCReLiD9 r/1A== X-Gm-Message-State: AOJu0Yy0wwLkh1O8bq5dGmXzLcAOxX5re/y+K3PLkRAQcPxWAI2OKs7L cq6KAD9VdpWftB+Nj/1ClV0ZH6Jx1vfgvMMMkwET6sDNwidhg256iKpq0Ek1wJc92tGzAwGXASa 7c488KcQa/P+1G0K41tYdWjBzO6S/waQATaYnLOtNgQ== X-Gm-Gg: ATEYQzx4TZcte0AZQntpXFJDvUnVkpgM4yRxsUpAlRCffafL/wAA3KzWBKL/TPI1+yE dQBGYy9g+sUFvHjUZ8QuVXbIexF2EdnzOCg4rL5iEHzl2A+Vs57dcdJzFGhy7B3bpucNSt/MYNO 8v+2d2XJ9hDbj7FV/rRNO0vUGFmSX5CzeREZauYJry3r/zy6+Re2Ozf+6cr7oedlEX4VSqZ5Fbj Sm7sYmNxsswWnpkriBlaYrkbCIjdeQ2+ctIG7Igs+nIcxgZ2geU08t2eH5cPaTie8x4I7TztD74 QtykTYsb X-Received: by 2002:a05:6512:6399:20b0:5a1:1e34:bf55 with SMTP id 2adb3069b0e04-5a162554db4mr717863e87.10.1773392900418; Fri, 13 Mar 2026 02:08:20 -0700 (PDT) MIME-Version: 1.0 References: <4d8b9e53-3f37-43f0-a4aa-5bda9c7961b3@eisentraut.org> <4e82f77b-acad-4356-94f6-8255135fb36b@eisentraut.org> <2h2n2gyw2f4ucicbl3drtdkjt2wzf6b2r4wqm7xwks6vpx5j7n@imymv4hkz5jz> <8f8776be-6d8f-4e1c-8d21-e55052edd91b@eisentraut.org> <9770b32b-84d4-4a36-9ff6-8fb54144cd24@eisentraut.org> In-Reply-To: <9770b32b-84d4-4a36-9ff6-8fb54144cd24@eisentraut.org> From: Jelte Fennema-Nio Date: Fri, 13 Mar 2026 10:08:08 +0100 X-Gm-Features: AaiRm538t9X2pFaMbsc-ifOhYuiAS796Zq3U_4998GgZG0FUm19tCYDJPN5VE64 Message-ID: Subject: Re: Make copyObject work in C++ To: Peter Eisentraut Cc: PostgreSQL Hackers , Thomas Munro Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 9 Mar 2026 at 09:39, Peter Eisentraut wrote: > I think we should really work to > get rid of __builtin_types_compatible_p() and replace it with _Generic, > which would be portable beyond GCC. I initially intended to do this, but sadly using _Generic inside our static assert constructs (even the new version you added) causes internal compiler errors on MSVC 19... I agree with your other feedback, and I think it's probably best to retract this patch (I've marked it as committeed in the commitfest now, because of all the other patches). The main reason I cared about this was to have a _Generic based macro for type comparisons, which I could use in other patches. I'll just create some there instead.