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.94.2) (envelope-from ) id 1r3eZg-004vgP-EU for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Nov 2023 15:46:36 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1r3eZd-007WHK-Na for pgsql-hackers@arkaria.postgresql.org; Thu, 16 Nov 2023 15:46: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.94.2) (envelope-from ) id 1r3eZd-007WH8-Dp for pgsql-hackers@lists.postgresql.org; Thu, 16 Nov 2023 15:46:33 +0000 Received: from mail-io1-xd34.google.com ([2607:f8b0:4864:20::d34]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1r3eZW-005seB-GT for pgsql-hackers@lists.postgresql.org; Thu, 16 Nov 2023 15:46:32 +0000 Received: by mail-io1-xd34.google.com with SMTP id ca18e2360f4ac-7a6907e9aa8so32007939f.1 for ; Thu, 16 Nov 2023 07:46:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700149585; x=1700754385; 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=J071tCg5Evrkl0hufqQNjyDKsYcoiWCAKndY0rcu1Oc=; b=C/qa1rYowzRL8ZTVYwa6zOey/fW2PnhaADZx0udaWtlqwAyNNOM0CN7GmhuVNzWpPD xI/+atTw26hQPbCAamjZ0zEsLIVhMS7/xb5n6Qk5ebvmOyE0XzsVt2EuvtmMw3w6pDxQ +sRvNaFnQsnTMAbqvFtp/nqjpH64faOSiEVYTxCYgd2VDz896QDSDfKv3yWrZZvjCE1x pkQLt+wE38gQTAlqFhjjt6wsGrCxV8C01xB6q5uQapj+NSThTx+KHQ4yxr2pWH6ADoOL nO9lWSBP6XZ89vYhzotD228VCbuCEL8Gwm90PwTiv9KNznldNuq1NimULQy7M3xU1Sza QrHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700149585; x=1700754385; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=J071tCg5Evrkl0hufqQNjyDKsYcoiWCAKndY0rcu1Oc=; b=ht57Nv/cVtRsf+Y4SZpkffscyGQ5Hy9Tv9tx/337wh1yrV4bM2pRZnrY1aSF4hP0px 7tjxJz1qOFvxvfXSQc0v/s6OHjbe0k993q3cKppVc8yBgjkU1HVBS7BIGSLXTezpTr4t Vv5k0mJoKlIIv8B+xfRwMug1fmVSsv0awsoDhLPMZYU3o1J8N4AN3xXFuQGoUoQCBhtZ pKviV6j/w5we6gepbTKHyDZw9hfLjHTCVwNFiUrETIplbaDNhBCQGYinIZjSnDW9scAM q/Ca1l842ViK0emdqAYlLUOm4aJmMdMHR0GsFrZzaDotoOu8AVP98qBxj7L5if87ARFp qZPQ== X-Gm-Message-State: AOJu0YxQ3qyc5DsHexsiMDJMN+eER+RS8iAmVUshTLTCAJpapEIBF/bl HiyMQhNTlrGWvh1s5NPILhc= X-Google-Smtp-Source: AGHT+IF52v6PvsmdtjhuOrrq3A67RrfzzG6Zx4abvcJEbAC4h/6FL58oiw7lAR7y+m8BZPCnU8pbgQ== X-Received: by 2002:a05:6602:164a:b0:795:bea:ae13 with SMTP id y10-20020a056602164a00b007950beaae13mr20321810iow.20.1700149585301; Thu, 16 Nov 2023 07:46:25 -0800 (PST) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id f11-20020a02848b000000b0041e328a2084sm1665993jai.79.2023.11.16.07.46.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 07:46:24 -0800 (PST) Date: Thu, 16 Nov 2023 09:46:22 -0600 From: Nathan Bossart To: Bharath Rupireddy Cc: PostgreSQL Hackers Subject: Re: Do away with a few backwards compatibility macros Message-ID: <20231116154622.GA2881373@nathanxps13> References: 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 On Thu, Nov 16, 2023 at 07:11:41PM +0530, Bharath Rupireddy wrote: > After a recent commit 6a72c42f (a related discussion [1]) which > removed MemoryContextResetAndDeleteChildren(), I think there are a > couple of other backward compatibility macros out there that can be > removed. These macros are tuplestore_donestoring() which was > introduced by commit dd04e95 21 years ago and SPI_push() and friends > which were made no-ops macros by commit 1833f1a 7 years ago. Debian > code search shows very minimal usages of these macros. Here's a patch > attached to remove them. I'm fine with this because all of these macros are no-ops for all supported versions of Postgres. Even if an extension is using them today, you'll get the same behavior as before if you remove the uses and rebuild against v12-v16. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com