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 1r5IqV-00CsOU-C8 for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Nov 2023 04:58:47 +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 1r5IqU-00CzrW-2T for pgsql-hackers@arkaria.postgresql.org; Tue, 21 Nov 2023 04:58:46 +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 1r5IqT-00Czqr-OW for pgsql-hackers@lists.postgresql.org; Tue, 21 Nov 2023 04:58:45 +0000 Received: from mail-il1-x135.google.com ([2607:f8b0:4864:20::135]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1r5IqR-006aP6-4R for pgsql-hackers@lists.postgresql.org; Tue, 21 Nov 2023 04:58:44 +0000 Received: by mail-il1-x135.google.com with SMTP id e9e14a558f8ab-357cf6725acso20472915ab.3 for ; Mon, 20 Nov 2023 20:58:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1700542722; x=1701147522; 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=XM9UC4mVyazYxYXxGKyIKFYYsKIc8RnWkV2jntbrI4A=; b=f55ywInpcShKBaFvowWpB7qp8HQ6UwlvFW+q5juX/4X2icbzSWbx8r6LSETdBA3ZXR dYu7feEthwFxSYbGZ8VYGrHMICVKBXoTP3Mi4fphFuLuhWSAhrk26cqL0dtT2gWs/qTR mlgVwE0kYmi5rSJa3YFcltaJkRj7D0BbDFH/PBezcHALzXDoOSjyL0zqctSRmSpLsO7E xxnHCUzslLmoU0BUt9PT5ozMaIXsRRqAKlMm/C3wC6othCYmCOFcxeHNqdFO8ok54+O/ zDgdhfrL/dGw9LYU4/Ua3xvpkltfo2jH31l3ItFv/pqnlv3CDO5ThOZG+QwHuOI166rn KZtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700542722; x=1701147522; 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=XM9UC4mVyazYxYXxGKyIKFYYsKIc8RnWkV2jntbrI4A=; b=nyXmXuj47FQ1Uwcc0dJ9csNq6G3lKKt5WelK8cQiKpw8qaDvlIpHpprVyBZjdqiK+8 +FuvBKSa2NCDB5mVLpK9NGkNgpWllCiF2UrTNhO4yvkjefjsBpCSmKplfBsoflqhHNkj stOiM0QFp3qCC46l4XAAUa5ZLseYdEGSh3CrFd6l6YdkWKJWamA99X9U/ISLDwVvaPe/ 6BTRD4v1O1CxJwCDizBa0KG0VkZqbVMFTvaP72lf87p6Yq7Hre90i/PGTxq6pqqKDJkp 2zrBEdh/TR/xIQEnprXTEzDxCghLx/rPu8/hphXFD3/APSxIp9zd3BII4II6xgN3LrHp 9Tnw== X-Gm-Message-State: AOJu0Yw46xNdpSI1jv1lmPP5itKca21D/X9EXgQwkcipoWNF4WLG9YAE sCFwO0RnO5senTSflOG2hjw= X-Google-Smtp-Source: AGHT+IEXlGi+dlhsFWpcEngqDteEux7K6L/sJBWa+SUH/LeGku7jqdi1lz9lM5OaAs6XfuQ8cvtmgA== X-Received: by 2002:a05:6e02:b4d:b0:34f:2756:8fd with SMTP id f13-20020a056e020b4d00b0034f275608fdmr12361834ilu.9.1700542722386; Mon, 20 Nov 2023 20:58:42 -0800 (PST) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id u14-20020a056e02110e00b0035ae9f62692sm2810436ilk.88.2023.11.20.20.58.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 20:58:42 -0800 (PST) Date: Mon, 20 Nov 2023 22:58:40 -0600 From: Nathan Bossart To: Bharath Rupireddy Cc: PostgreSQL Hackers Subject: Re: Do away with a few backwards compatibility macros Message-ID: <20231121045840.GD3521465@nathanxps13> References: <20231116154622.GA2881373@nathanxps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231116154622.GA2881373@nathanxps13> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Nov 16, 2023 at 09:46:22AM -0600, Nathan Bossart wrote: > 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. Barring objections, I'll plan on committing this in the next week or so. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com