pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
To: Peter Eisentraut <peter@eisentraut.org>
Cc: Jelte Fennema-Nio <postgres@jeltef.nl>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Thomas Munro <thomas.munro@gmail.com>
Cc: Andres Freund <andres@anarazel.de>
Subject: Re: Make copyObject work in C++
Date: Thu, 16 Apr 2026 11:31:27 +0000
Message-ID: <aeDIj2SBDl0EHZtb@bdtpg> (raw)
In-Reply-To: <bff1d798-2fc4-48a8-b4eb-7a550be46d07@eisentraut.org>
References: <5291d173-1227-4619-b8fd-62336ad292b3@eisentraut.org>
	<CAGECzQSB=rBZ2n1WeCRAQ09xHzHSpyVBk-+NWEAcLsegsRXPzA@mail.gmail.com>
	<6dff90f6-2afb-44a3-9524-b017924d71da@eisentraut.org>
	<DHFMW63NP35Z.3RRS8PIYV508K@jeltef.nl>
	<7ddb8894-3939-4846-8d7f-d886b2cb42ab@eisentraut.org>
	<CAGECzQRauVYN19Y-DTiCTCkdNabh+ZqhdaLrUHR6CAU4wm2TFQ@mail.gmail.com>
	<8f4a2a1e-6142-4481-bc21-76fd33419103@eisentraut.org>
	<adeQc3I/4dwpeqEb@ip-10-97-1-34.eu-west-3.compute.internal>
	<ad48tOVLN5Vg73jR@ip-10-97-1-34.eu-west-3.compute.internal>
	<bff1d798-2fc4-48a8-b4eb-7a550be46d07@eisentraut.org>

Hi,

On Thu, Apr 16, 2026 at 10:07:35AM +0200, Peter Eisentraut wrote:
> On 14.04.26 15:10, Bertrand Drouvot wrote:
> > Hi,
> > 
> > On Thu, Apr 09, 2026 at 11:41:39AM +0000, Bertrand Drouvot wrote:
> > > Hi,
> > > 
> > > On Wed, Apr 01, 2026 at 07:54:07AM +0200, Peter Eisentraut wrote:
> > > > 
> > > > 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?
> > 
> > Now that 66ad764c8d5 is in, the only remaining use of StaticAssertStmt() is in
> > test_cplusplusext.cpp. What about the attached to get rid of it?
> 
> This is a test module.  Even if the construct is deprecated, we can still
> test it.

Right, but I was thinking that if we introduce a "pg_attribute_deprecated" macro
(like discussed in [1] and [2]) and make use of it for StaticAssertStmt(), then
this test module would generate Warnings.

We can still come back to it should the above be implemented.

[1]: https://postgr.es/m/CA%2BhUKGK2zuRevnNzCpVzLA7ieHnJoYPnDvgtWRcB4pVnOzchhQ%40mail.gmail.com
[2]: https://postgr.es/m/aRGa87Ab0f3ItWRV@ip-10-97-1-34.eu-west-3.compute.internal

Regards,

-- 
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com





view thread (51+ messages)

Message-ID: <aeDIj2SBDl0EHZtb@bdtpg>
Permalink:  ../aeDIj2SBDl0EHZtb@bdtpg/
Also on:    postgresql.org/message-id/aeDIj2SBDl0EHZtb@bdtpg

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-hackers@postgresql.org
  Cc: bertranddrouvot.pg@gmail.com, peter@eisentraut.org, postgres@jeltef.nl, thomas.munro@gmail.com, andres@anarazel.de
  Subject: Re: Make copyObject work in C++
  In-Reply-To: <aeDIj2SBDl0EHZtb@bdtpg>
  References: <5291d173-1227-4619-b8fd-62336ad292b3@eisentraut.org> <CAGECzQSB=rBZ2n1WeCRAQ09xHzHSpyVBk-+NWEAcLsegsRXPzA@mail.gmail.com> <6dff90f6-2afb-44a3-9524-b017924d71da@eisentraut.org> <DHFMW63NP35Z.3RRS8PIYV508K@jeltef.nl> <7ddb8894-3939-4846-8d7f-d886b2cb42ab@eisentraut.org> <CAGECzQRauVYN19Y-DTiCTCkdNabh+ZqhdaLrUHR6CAU4wm2TFQ@mail.gmail.com> <8f4a2a1e-6142-4481-bc21-76fd33419103@eisentraut.org> <adeQc3I/4dwpeqEb@ip-10-97-1-34.eu-west-3.compute.internal> <ad48tOVLN5Vg73jR@ip-10-97-1-34.eu-west-3.compute.internal> <bff1d798-2fc4-48a8-b4eb-7a550be46d07@eisentraut.org> <aeDIj2SBDl0EHZtb@bdtpg>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox