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 1tY3Yw-002ejV-DL for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Jan 2025 13:36:02 +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 1tY3Yu-00Bkyg-Nx for pgsql-hackers@arkaria.postgresql.org; Wed, 15 Jan 2025 13:36:01 +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 1tY3Yu-00BkyY-CB for pgsql-hackers@lists.postgresql.org; Wed, 15 Jan 2025 13:36:00 +0000 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tY3Yt-000XZV-1F for pgsql-hackers@lists.postgresql.org; Wed, 15 Jan 2025 13:35:59 +0000 Received: by mail-pl1-x644.google.com with SMTP id d9443c01a7336-216634dd574so79144975ad.2 for ; Wed, 15 Jan 2025 05:35:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736948158; x=1737552958; darn=lists.postgresql.org; h=mime-version:subject:references:in-reply-to:message-id:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=9JiOCRL38n/ATMwNLCB99IVWjjwmdcnq2tCTEVLDg/8=; b=H50qBzbK0AmZSD9pO0D53N2a8cm2NV0b/ACndkOYjmH74uV4qOyTjfuA2t8y2+CmRQ 4vvxo3eihIK+T+L0aBlmFlPxsnDVSzk98WaUoFBYb/Kic76vVLUXiioML2NNi6Jwqakn /MvQPPlibtHi52zYY77vSDt4cOOoiUz5c5mYcXnDRCeOOvpQd2qTqds5WmSNgvE8BgrG a/gil+mrgjtPZ+mdjS8uGzelWdQlCuQFSDsTKKM8pR15vB1KvqmaXYloYoFNrb/PKN95 rf2P7yd9wReI56+U3oMJaCp0BwIrD6rtB1BBkmXJt7x3RSixAQcXS/Nz5g39H2khCUMl qC5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736948158; x=1737552958; h=mime-version:subject:references:in-reply-to:message-id:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=9JiOCRL38n/ATMwNLCB99IVWjjwmdcnq2tCTEVLDg/8=; b=XKUsD3T05xsxha+EPUz51LkxJQ4w3pBq0DOZ5Teo7C7hR5K+H7XAGYje/wBfMOgFqC MkEN5OrYvhxwy4n2oZfyGFUDOv5+X/zHLnZwkNXpgV03o+v+ZQExyXMZNUh+aNp4D9Y+ O5zz8xNNG5P8P/KEhVkEbmQsrK0uEgNp3YHITo+heIuXHSpH9tS6+77FGZ9AgC23uMOg 6/+ASPfKtgfFAyhJv9mqLyEmRBCjnTt/rw2mGkrTycVzon+uvyLDl2A9f2uMvLoDuLhN iRHjPpr6IBFXnqN6iKmkbXLgvXPTjsPFVvhQ08YPbB7HUhgL8JSfFsskcte8qZMlcRMX YC8g== X-Gm-Message-State: AOJu0YxAiSXHXEkQ08netHHEgtcTm4DK3XjQlsx6+0aiv8VLHY4cTP13 7Of/earJxiI6eioFuszEMJ3aWEpuJMQPSo2+zUgpfPpVhayVFLcf+rqc3CXxWXJzpg== X-Gm-Gg: ASbGncukiPfwPMhsmDoqY2RLn1A6dJCIyG7J5UTHc25T+exdG2T6shBwNpbSyI0yeps G0N0ZE//YrDcyxGlQDInRs5VZnnLGObsvmy1GYvQb8s1sHJHawm8Ra0HYsTdWG0Bvjcfu7+PEhO 6lOh2AXPc3M1BINtFQPy7p4qyvp2T31F8V5uKAvuqfN/L9JwM3f/1vEQW1TlKtQqgZUg5gpeK63 N5wAP3eBkwdLxIoLjVeR1nFGBtgxrFp5XM3AllpAtPBDklgCMXoEFmItEjFW6bQcS4yCXCsJ9GZ qu+Wn4+E2cTWcInMLbKPASMmoLmyyQRWzsRQ86o59JvYxVM= X-Google-Smtp-Source: AGHT+IGTuFjLbQiGWpf++/C3aHKYMNf+vO7Ls/pZZ31tQzTpamE5j8rTFUzxUMV1O4k6AYy39rHS2g== X-Received: by 2002:a05:6a20:3d83:b0:1e1:a716:316a with SMTP id adf61e73a8af0-1e88cfa685fmr44106527637.10.1736948157631; Wed, 15 Jan 2025 05:35:57 -0800 (PST) Received: from [127.0.0.1] (ec2-13-212-127-252.ap-southeast-1.compute.amazonaws.com. [13.212.127.252]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-a31d5047ea0sm9852532a12.58.2025.01.15.05.35.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Jan 2025 05:35:57 -0800 (PST) Date: Wed, 15 Jan 2025 21:35:48 +0800 From: Zhang Mingli To: PostgreSQL Hackers Message-ID: <7000b3f6-9164-4778-8a35-430b5e0d7dcd@Spark> In-Reply-To: References: Subject: useless list_tail()? X-Readdle-Message-ID: 7000b3f6-9164-4778-8a35-430b5e0d7dcd@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="6787b9b9_32bb98cb_d682" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --6787b9b9_32bb98cb_d682 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, While working with lists, I've been utilizing the=C2=A0llast()=C2=A0macro= to retrieve the last element. During this process, I noticed that the=C2=A0list=5Ftail()=C2=A0function = is not being used anywhere in the codebase. Its last usage was removed in commit a8d8445a7b in favor of=C2=A0llast().= Shall we remove it=3F Zhang Mingli www.hashdata.xyz --6787b9b9_32bb98cb_d682 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
Hi,

While working with lists, I've been utilizing the&=23160;llast()&=23160;macro to retrieve the last element.&=23160;
During this process, I noticed that the&=23160;list=5Ftail()= &=23160;function is not being used anywhere in the codebase.
Its last usage was removed in commit a8d8445a7b in favor of&=23160;= llast().


Shall we remove it=3F


Zhang Mingli
www.hashdata.xyz
--6787b9b9_32bb98cb_d682--