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 1tYoRO-00FV0Y-EK for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jan 2025 15:39:22 +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 1tYoRM-000kPU-QT for pgsql-hackers@arkaria.postgresql.org; Fri, 17 Jan 2025 15:39:21 +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 1tYoRM-000kMG-Ed for pgsql-hackers@lists.postgresql.org; Fri, 17 Jan 2025 15:39:20 +0000 Received: from mail-io1-xd35.google.com ([2607:f8b0:4864:20::d35]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tYoRK-0002hV-2W for pgsql-hackers@lists.postgresql.org; Fri, 17 Jan 2025 15:39:20 +0000 Received: by mail-io1-xd35.google.com with SMTP id ca18e2360f4ac-84ceaf2667aso170677439f.3 for ; Fri, 17 Jan 2025 07:39:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737128358; x=1737733158; 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=MOjqRXeJ451DqMz7v/OkR3u8gGYSIL7OC9NP5ZmgEDA=; b=jEKzAESq53XTHNYyB5hVhRRe8t6pjZJIQc/VP6Tdtf8maMf5f1spRiaDKiSCn4AP5d EERIL25UNFvHepXhXWyTbfp6JebQWYmzb7fCOiBVSIAmxy7Xh4SpGdmVLGeI4694qbOu kafYCZyVx18EiwJnrAQaLietykGrhqogt+JinswcFPrbND2vam7wd9dglrXABosVuc4m jIwtuVblOnH+5ZD3kwiZPh1DJeLcqbLW/YbIR5Rv75swhMe8XNf9xc/W6qyc3/Ck5dYN XiPOGMq8pg4hsj0saS1BYOJa253qjwgIHSyulpUJVR1yV4T0sqeIZ7X0Ld4xKoV7aA+A dskg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737128358; x=1737733158; 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=MOjqRXeJ451DqMz7v/OkR3u8gGYSIL7OC9NP5ZmgEDA=; b=W/l2zd5uVTiD7ddkGcVrmDI9Ta0PypwkwrPsfKRtcL+qjQ4h/KErON59TmQFpCV+p6 YWW5pY20/n6CIxsMCmSEuCgtTSNf1CnQPzGh8c21Ys6XfN8B/b6OThpDpW7D/mDnV6kM IwNHvAJoVnINeM8FnSutPY9T1AKyVpQ8/6tpPI4cUdeRpHEz7Pz51mw5tjhVL2a0h9Kr IsbXLAzSLqIatt5fMdvOA3rhU1cjYbJ6A9eOaz75+WBN+3lR+nRUqKgedd8xoXq/2GCI 9fz5jvRSpOEhVKCEWYXB7m9kSxRNVjkE3fW3vvibsoZ46LQ630AgQwFdHWC/lIv5dWxh HEHw== X-Gm-Message-State: AOJu0YyJcK+X9cEWBz/w2tn2od372ja5cWSrpTapyzQvG+Ufw82ipOTI Mv62aJea4hrqoK5ggEAEJfYKT8kYzYR7BZ8HFj5ES/ZStRNktdMfQTiArg== X-Gm-Gg: ASbGncvujvQdvzhlmYcx9C6UrHk3ucDi3nve71eoMNUBcldDrZ4hX6e1ihp41ndhpv9 7zOTqP0YcnFrMtZILmHmB+Q63lzpDtDfO0b9QFjiqubAWqWD0Yekamk1hwhc/mnfOL2SlkUs7i7 hCBqchCUWsTgL/Xt3ikrpHGpNm8LKUv3DAG4qYj7Yn+WMjSroi7Jae9RoMClH7L9tYTCdgZaVBL whi+Rx4OJSlwPDZybdeCUG3eiSqV5ts8n9AtcAKrsDqMSYu6jluxhOZBCypEfp47pr03Z9http7 vjSCMD71QYekO1Yz0UqfV6KyVIr3GrY5ZixoV/aLiZwuap0= X-Google-Smtp-Source: AGHT+IGLn5F4a//epEQ2ieEV6Z29DTkECFQzOU3VI8ev5rMnBRDZmme8HxvusKwL6WZNE0UKLrLzQg== X-Received: by 2002:a05:6602:36cc:b0:849:c82e:c084 with SMTP id ca18e2360f4ac-851b6192ea6mr253750639f.6.1737128358470; Fri, 17 Jan 2025 07:39:18 -0800 (PST) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 8926c6da1cb9f-4ea7566e48asm677609173.108.2025.01.17.07.39.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jan 2025 07:39:18 -0800 (PST) Date: Fri, 17 Jan 2025 09:39:16 -0600 From: Nathan Bossart To: Michael Paquier Cc: Postgres hackers , thomas.munro@gmail.com Subject: Re: Remove XLogRecGetFullXid() in xlogreader.c? Message-ID: 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 (I've added Thomas Munro to the thread.) On Fri, Jan 17, 2025 at 02:00:49PM +0900, Michael Paquier wrote: > XLogRecGetFullXid() has been introduced in 67b9b3ca3283 back in 2019, > but as far as I can see this has never been used in the code and this > is used nowhere in the core code. > > I have looked at Debian's codesearch and also looked at traces of it > on github without seeing it being used anywhere. Knowing that this > was originally intended for a hypothetical undo log patch back then, > for which no work has been done for years, is there any point in > keeping this function in core? > > This issue has been raised on a separate thread, where Noah has sent a > patch to consolidate a bit some epoch calculations for > FullTransactionIds, around here: > https://www.postgresql.org/message-id/Z4i6MbUlZxjK1rRh@paquier.xyz > > Removing it would have the benefit to do a bit less refactoring for > some of the work of the other thread, and this removes all traces of > -DFRONTEND in xlogreader.h. ;) Seems reasonable to me. I think the counterargument is that folks developing new AMs should use this [0], but if no such users have materialized in several years, then maybe that's no longer a concern. [0] https://postgr.es/m/CA%2BhUKG%2BmLmuDjMi6o1dxkKvGRL56Y2Rz%2BiXAcrZV03G9ZuFQ8Q%40mail.gmail.com -- nathan