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 1vaB7b-004lXT-18 for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Dec 2025 11:09:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vaB7Z-00GdFI-1S for pgsql-hackers@arkaria.postgresql.org; Mon, 29 Dec 2025 11:09:06 +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 1vaB7Z-00GdF9-0S for pgsql-hackers@lists.postgresql.org; Mon, 29 Dec 2025 11:09:05 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vaB7X-003O5z-0l for pgsql-hackers@postgresql.org; Mon, 29 Dec 2025 11:09:05 +0000 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-2a0bb2f093aso89997565ad.3 for ; Mon, 29 Dec 2025 03:09:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1767006541; x=1767611341; darn=postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=TCTEp+kYdTth8dgEGBtwbc9O9BJOJ3NdOEjswnoXDY4=; b=FkMXshIndJPFi0XZFU8ESlYbsXm9xUqHiw74EA/7yri0IVkGCkMSweR4lmtI4RII/f RVFNEPZbDmeDOnbl9fEmZNFOblIWOZQSt1fVXhYAJU1S6HUGEc4vpDSE7d9qWk5zJmUv zdDGuYxV+fHcMYoipj/ikYpXibvBaIP6EajZcdlmJc9Osr83+40NI162u4E0eAF/ar6q ul52XH2izKtkTWlR3niDJEJ54zWr9GleUiGZhzQ8eGrOOglPfGOqAwF1yrb8a+Eup2+8 gP/uPrKvpjFHEfguZlUO+jLXXchP/kbbUgWq+IwWlPDD6Z5bOQ9fKQM0pAVUCyY/C3FN s5fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767006541; x=1767611341; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=TCTEp+kYdTth8dgEGBtwbc9O9BJOJ3NdOEjswnoXDY4=; b=v5oZEbR3xFAbh3CrLq8xUud6N2aLUAs5PD9lGF24y/cxoedNttawKThG7lZG41/UEb kFepWxYUbW1odK3CtUj3oOckkCPpInDDTMNud07MRr01wgCbRUN/YsL7rhJmc8qrK/1q xXseEX9rpGBDfvGvFzu6Y/LwblCWhCHaT4DSfReTUIRUh7xMbxFHXIVsOs0c20+Jlwml rlozFGmY4oX9r5KEiGGDgGGAVa95sQT+ClaliEaIVWDt4x4Dl6yUP70hHqxpo/vLudz5 HQr2JV6TUEwbofce1qwZcuewv1V/yLcGx9+0AD5xxUlyqe2an+UdtZA7tLe9WTX9+bTr 5nlg== X-Gm-Message-State: AOJu0YzOKWYV7msEOquvmYVA4iDACGF9Tnhbu7328fReJuGNuYpOmlb8 9ZlaP/eun0UxVcWpBIJJRtAvIrItdqHheA4QxJ48ZI4SChcs17dYVSL6 X-Gm-Gg: AY/fxX4lUKPJAB878tgfYQEBOjlAgZKgjLs4qP3mgqvjNSA4Z7q/EBBQS954becjpvy mzr9mHN/JHyrLb2keEOq1toyRcGhEenm5uSJAMEby27NTjeHcGVS5qkCe7zKFP3MC1hBIXwvil1 +7SkXGvWeG97BdH2HcEeCV1DOqscSmCsxNalj1VXmYzKmv/gw5IjI2nSQtpqPw9MRIcTcTbnnzC jYUZCruPBwVnbValcpHEC4EhR4wGIY/iFKqOz7pM8gH/5tAAx3eSidmQ7I5TWJHqLvYAVy7XsZh /VlvP2343Y+mwD5UmOfkt9mkybmX/a1b6KA+kXxb6uWnSviKqnLYOp08QCIBnVuCAmVYz2j1k6G 4rEWm1Ga3vmWcmNpBsz3eoII2kgIb7QpnF02xOGMyINYhiKWiCUUFT/DogoxkQpT+/3KBlsczPr pkAxObGXc2WiOcleCvuAyL X-Google-Smtp-Source: AGHT+IG2YgFaf5AB+ijlOYKygnPJFoGC5ZFAX0WLeEEz0eCEBkFafJ8/IbSrbXuUbbbzDiMuHxpFAA== X-Received: by 2002:a05:7022:2489:b0:119:e55a:9c08 with SMTP id a92af1059eb24-121722e8febmr30554406c88.36.1767006540590; Mon, 29 Dec 2025 03:09:00 -0800 (PST) Received: from smtpclient.apple ([142.171.105.12]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-121724cfa2csm95278681c88.3.2025.12.29.03.08.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 29 Dec 2025 03:09:00 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: Define DatumGetInt8 function. From: Chao Li In-Reply-To: Date: Mon, 29 Dec 2025 19:08:25 +0800 Cc: pgsql-hackers Content-Transfer-Encoding: 7bit Message-Id: <225E9E96-D160-49CD-97CA-A9AE20B60A8B@gmail.com> References: To: Kirill Reshke X-Mailer: Apple Mail (2.3826.700.81) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Dec 29, 2025, at 19:02, Kirill Reshke wrote: > > Hi hackers! > > I am currently involved in the Cloudberry kernel rebase process[0]. We > are rebasing [0] which is based on pg-14 on pg-16 kernel. During this > process I noticed rebase conflicts introduced by c8b2ef0. This commit > defines a number of include functions for datum conversion. > > During this rebase resolution, I noticed that there is an Int8GetDatum > function, but there is no DatumGetInt8, which I want to use. All other > inline functions seem to be provided in pairs by postgres.h. So it > looks convenient to define DatumGetInt8 in postgres.h? > > FPA doing just that. > > > [0] https://github.com/apache/cloudberry > > -- > Best regards, > Kirill Reshke > LGTM. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/