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 1wDKwa-002rg8-0I for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Apr 2026 11:31:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wDKwX-005P5w-03 for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Apr 2026 11:31:33 +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 1wDKwW-005P5m-21 for pgsql-hackers@lists.postgresql.org; Thu, 16 Apr 2026 11:31:32 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wDKwU-00000001IwG-1x2g for pgsql-hackers@lists.postgresql.org; Thu, 16 Apr 2026 11:31:31 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4852a9c6309so72828995e9.0 for ; Thu, 16 Apr 2026 04:31:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776339089; x=1776943889; 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=Jz8IbHOZ5/OXH82nG3imoLvK46mLB5zkjtnKy+wybIs=; b=VlS2NcPEmtOvXNDiuC4MvQgcCSlINO/k1GCKCMiiuPv8Ee63UYbfGowJD/TbVNfd5s 6i8BtzbdhVPUTXOKMKHLFBM1tgd5Icvs6/3PBrf3C64cqRe4PlcSHkURb7ruLgbwPumJ z9ScZZcITTrFBnTdE2OuKYq+Ma398bbh4vhbfGduZUhTnghrF4qM48ZatpEgWi9yqQ3F EvVQfTt4jxVDfAhPSxrf8gI0TAFrmh1SC+KMi/cXRyG2GKGW0aOXb0FjxoRQnmXudrTe wEpQjMhFlo0YiFufpia9JJg7lM0N8FLpMMeeiwt9tOiQGdlzxmRr+XFPzn/Xi/pUUiTI PeHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776339089; x=1776943889; 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=Jz8IbHOZ5/OXH82nG3imoLvK46mLB5zkjtnKy+wybIs=; b=UQhkBD6usGm6Xg/4MrlGUJGWuizbb381TIAA/rCKFeyANo3ES0ZfdSMO5oSDOyjexk YZfke+JSqHfBvMLbEb6Vb41ftBfQXl823BRz98eYrOIepOY11gEl/z/L4WLhfTOjO5pb erqsiN1WmU9ZpcX6LNsa74Tws2rx7y+2uc7p6gM1paqDQo4PgDs1c+Z9vIPCKXbbmF2p UkN21f+IQkKmtZ3nygUtIbya4qaJKdnXPrihm+i0V629aLnOVyiCSnGo4QQAPDSe7mtm hNpUxy26gMGdUwP+yusbhW6fHvTGeUzEUSQqU3QjYmhlcJAhu0grve1nGNy+FaItp6aA um1Q== X-Forwarded-Encrypted: i=1; AFNElJ/bpiyP3LWtt+U+0f09zqVRpPR6ZYlUdvuoaRQXBKD9xUKE3py6/yNe00DfPdoF7FGU542gumRhLfmSM1P6@lists.postgresql.org X-Gm-Message-State: AOJu0YxHmqEuMuj20Bj8f3IQ1+dhlzZFspaXtj+dXnc6WHqYF9KwXMnu sDoLQfjH7KrWpRhQcaAJsgaaU9J+I9Pw/7/D221IYmSJhuV+3oU1c73w X-Gm-Gg: AeBDietRYI6mitXrpa3WD/jiUeMRiDLC1x3BTpygy0WjDRfq0wIFJqjQyLTPebwimxj Zrz5UH+AxbnqEFrsK84g5KLlXb82QphCtMx4Y59/GlhXCWFXqLdPoJixUioQmIu0KC9XeYGOeya M25fJ2TUqjS2eT5XhWjYrgvy03FJ7tr1VuwKFyKbfgYwqATneTFA/P4ESXsjO85Eaeqwb2eLKuz QfLwApFYsSNzfahdiD827+w/lIxAT/z3byEieBmfdnCN7hzWMEgLAOOXH4ycz7FzuEdvspA8cDU 7Dh3FlS7lR04k4+XsXjKXpGtJmV7K+j79vCed1sU46YiK2lgPG+Je23R5z7LukjndID9wXzKalC jhZCxl7+/rk/rgDBWh/ADwsnrciJ5aFdBYzfU5wiFpQLmcPsCz2zH9uhxN968j5MGpvVAproLtU +M832kVFFxXo/sE+54ZfsaG/MnCD1HPNS4fO5DpMqcesiTp3FDz7N0rOQRmBrnltqTMgaM3G0VT 2uWt+zQNO0= X-Received: by 2002:a05:600c:45cf:b0:487:243f:dc3e with SMTP id 5b1f17b1804b1-488d67b8d8cmr329607675e9.6.1776339089162; Thu, 16 Apr 2026 04:31:29 -0700 (PDT) Received: from bdtpg (ec2-15-237-197-144.eu-west-3.compute.amazonaws.com. [15.237.197.144]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488f0eb43f6sm44297025e9.25.2026.04.16.04.31.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Apr 2026 04:31:28 -0700 (PDT) Date: Thu, 16 Apr 2026 11:31:27 +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: <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: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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