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 1w4c3e-002Mg0-15 for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Mar 2026 09:58:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w4c3c-00Gpj6-2Z for pgsql-hackers@arkaria.postgresql.org; Mon, 23 Mar 2026 09:58:49 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w4c3c-00Gpiy-1f for pgsql-hackers@lists.postgresql.org; Mon, 23 Mar 2026 09:58:48 +0000 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w4c3b-00000000ba5-0mMm for pgsql-hackers@lists.postgresql.org; Mon, 23 Mar 2026 09:58:48 +0000 Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-38bf132993dso29377791fa.0 for ; Mon, 23 Mar 2026 02:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774259925; cv=none; d=google.com; s=arc-20240605; b=V4azhd+PZ9t0lB4izOoljVs/l0luowXbs4OCMlwSn1DjNcUzKdWuTSs+QdvxtfKA8n LeQwOVsRA6c4Ec7IoSlCbXFAdSRkJnHhdzRugMogWg6ptmVs+1SbP18toIoBIFCFPweL Rt+Y1d6H18OJ/3QGYZqrdTS9Mhtdqfc17rDk3A3pu5fUsG2u5aa8ONmNCmA1Xek4sEkB KDNzIg0yyG8N1NMkKW7NDmubTTpttUbi1Li100AMl9AbjwP54pQ7NF9rVbpvmOdUkdwS l5T1CLNTdI/jG1SIvzSLIgSkIrKOSFHPh6OEpBeW4kqqV7L3CXsX+Xby21UNU71TEkTd m8YQ== 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=5fKcJl+2X/jibiFNnYzY/S+XThkcbbhkVpqOGWOPVT0=; fh=mKFpe8E1qx4uYTzSWYog0vWi6osg8vhcUhGL+tFQ4jE=; b=ZntlKMWEarOVGADw4ORTPFD5nkcjC2OItkp8Qf168dczqtvwrCvf8JCEravlFbtXqF yYxfwPkHf80B0tThjP8TbcFkdPjss9+vme8TxrgV1gnpTVxCAiC5VIlezq8i6EDK02C3 2qyLqzUquFXyoeODViGuV9+rp/IC1KCaVwikPNrjv3Q6WVAd948zit4z0ddRNAbjnWZa IIUcrQrNM3kVK9O2UKCk0nFJs/6+FJAp8l+0W2aho2nWNtvYzTFHkccYj3b13lgsZJgq SXEOebfY8uRWFes0K/1vtO+EOD+EEUf674WzPwHCBZPjUhpC4FoYvSSdwjWwM9tin2Ms Ti+g==; 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=1774259925; x=1774864725; 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=5fKcJl+2X/jibiFNnYzY/S+XThkcbbhkVpqOGWOPVT0=; b=EDQSPtpnCN0ResQpwjTei63bSSVu/90HT0VLgePcdSN5jLPieo2DBqdJGGQQJ7nTtU YzOIZ44KAi54AhcFaOd4S0h3LYMrWCveNPwoLgJ/45MKsvjVqmw15i+P9soyeH7iKneg yRKNL2A8J+pV0OUBTgmqhXpz+oMNywUtvQWENWvKQdIuFsgDisGC6i+ij/orr3MKYZ/k kpJgi5IZXYjlnL47q8JF03AGCze0RJxbfPL83UdjXjLolEKzUXs7Lk3HW2rOs5Ayxo+x StXVInxxfSP6e9Q6fuw9sa9Vx40XKIwfeoao/NRMOKt6CbCu6vMDX2rul9pimOShhFBQ JACw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774259925; x=1774864725; 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=5fKcJl+2X/jibiFNnYzY/S+XThkcbbhkVpqOGWOPVT0=; b=mZg4D1w2m9xCN0sagL/iqnbTmThvRMNInmsFHyQsfJQb1mH83gmQuBopngWo+4gB72 Ijw1LvIcAimDmkw0UPcqGJizGxew8cyvmM8TeFVy1wXzg3RlXFHdZJtVxEV84BSVTh/z q+6FDAfYVHksdXFSsz1MKz6/3kyfNhFxgHu/HdihNK1zk/KA70JqICiSzebfJv+d3fcu pIE79oT/RprPXFBoRYHH533w9lS9gFgSgxOhe1OMV3D4JBZ8v15BzDW4jjjMHckET8L4 deM3TachNoPFxDxdvfEV0EEbh27lxW5ja9BvedXPWDfBbsF/PrIKWx20Z4V5rtLjwcSy wRQA== X-Gm-Message-State: AOJu0YzEkwqDBjHa4Pey9JIWBBSqe+ycIsrf4ez7sXQxrKm0Nt/6gFSn fDMvuB5GZ2GjnvDaCAfF5l6YB35NMg2L/FQl+8OMKkk6hTxP8KKJ5RybKJ1pU01geboghkUtZO8 y6eml3vOrs/ixcOJPNTEKugfCHnO8INtiJJ35gdm6Bg== X-Gm-Gg: ATEYQzzIXDwksmRF9PBgUHrATSKgoluTOKbYoBrJjv1Dqo2vtRgW/uhnQ5+Q41AO2z+ btAoY+QqTOjLTOkbDXPv1/ZWX1zNcpDwSslz4xZ0AqI3sWhmpv9cWr6a4lwshsn3NDy+4C3AT+i Z4St7/aGrKsAhGSSQaH90VVqV7DDtMUEAacS3EWOr1nyIP4/uV29j18izwMaXHVBkA/gLBil8X/ cymOO6NlsYTPRPzntDu4y76VKCpccLaDYVDhmfdfJM6Ps5E6da4GGdGz1wHzw4zYKLWU7KcER2w 8F51qMK+ X-Received: by 2002:a05:651c:20ce:20b0:387:384:923e with SMTP id 38308e7fff4ca-38bf975f5c8mr29163861fa.37.1774259925484; Mon, 23 Mar 2026 02:58:45 -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> In-Reply-To: <5291d173-1227-4619-b8fd-62336ad292b3@eisentraut.org> From: Jelte Fennema-Nio Date: Mon, 23 Mar 2026 10:58:34 +0100 X-Gm-Features: AaiRm537x2oa0QwWrogUDc5KrXW2iuSEFMKCqs2qSkvyWhFIfhMdpiEeKNxBGqY 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 Mon, 23 Mar 2026 at 10:27, Peter Eisentraut wrote: > I think we should commit the pg_list.h changes, since the C-style > compound literals are not a C++ feature at all, and so without this MSVC > would never get supported. (Or you couldn't use PostgreSQL lists, which > would be very limiting.) Sounds good to me. > The other changes deal with designated initializers and flexible array > members. These are not a blocker, since extension authors could deal > with them themselves by adding appropriate compiler options or similar. I think we should add these flags to CXXFLAGS for MSVC by default, similar to how we add -std=gnu++11/-std=c++11 for other compilers. We can then document on the C++ extension docs page, that MSVC compilers require C++20 support.