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 1vDEG7-005c4t-Sc for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Oct 2025 03:51:03 +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 1vDEG6-00672B-Sv for pgsql-hackers@arkaria.postgresql.org; Mon, 27 Oct 2025 03:51:01 +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.94.2) (envelope-from ) id 1vDEG6-00671i-JZ for pgsql-hackers@lists.postgresql.org; Mon, 27 Oct 2025 03:51:01 +0000 Received: from mail-pf1-x431.google.com ([2607:f8b0:4864:20::431]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vDEG3-004PVf-16 for pgsql-hackers@postgresql.org; Mon, 27 Oct 2025 03:51:01 +0000 Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-76e2ea933b7so3925981b3a.1 for ; Sun, 26 Oct 2025 20:50:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1761537057; x=1762141857; 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=on4mF/+mN0AmhN0xVpIbm4tT5ctH1IPhPvrsqbne4Kk=; b=lCPS7bm97O4SFRfv9k+0ZEmj8Bod2AFtY8GzttkOfaGl9PsX3e97qVW7+cB8iAE42s ibygArr1n99A8PruKmEdiDLS+uJOrqIRD4wQgbyB/GbcVp6fCEXGPSSaxlt3vtdLKH06 5Ptgaa2dVDESsy091/wu5AjCpA2wYG2oveNN5YHeXA6nf0I1ywSpt9NDPTk8n4tHZm8E IRAHR75oOILrixuiRH+y0HJh2sz05GwFTTs+WCrvdQaICr0yFYi6BHochaaF2tACEfVu ze+reehdffP3PYYKpwPHeJsS8PX3c5Dh37PV7SLh4JRcFttZPabBorbB94mXMt9gDkVf B8JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761537057; x=1762141857; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=on4mF/+mN0AmhN0xVpIbm4tT5ctH1IPhPvrsqbne4Kk=; b=Vlol3OUsfpCWVeLlprmoeSij+c1Ut3NI1KAK/8hulwLyvRK3KPxPdNKZcdog9DpHZR LgVkLN5yLud7Jz1B/RorRunlpS9iTjMgFq0Q/SmyvlEDovzzj8zC9tlip3lQq8Nas2CV aSjZPkcvZBQ+hs6EFk7wRh3qyfqgdyUZcb8dSulLKW9j6PymIwITJkQ+vb+LX8sp0Wgf /ftby0CteifH1im5zDAd/gzhYRomV5/37Pv6lmccOufa0tWQgTJxhSWHfMrabT4FGg9a o863XTdstLrfP4vjtJg8XWXw11eDRNHbRdJ/rr7gc4WWTGu54+1YMP3/OYmF1MDbdFog 4qDw== X-Gm-Message-State: AOJu0YyTLi7YJKcPug5m/2TzLRR5e3FbcuQ17/0oV9BrzIduTiFRygLl EGZIMUbRkhO9lJuf/XbuD/kzJHkadqdWsZ6eosXVtmOg7cH/GFIdx1df X-Gm-Gg: ASbGnctu6RqUelaXRz5Rlqz7FeGMKo61eSamXy+bqhslUXSN8q2kfsWGEo51mODoPBc NnLQpRDgpu9kacmZ4zo4D5z+dFYCfNhI7UoVQIMKuxyaiUnM6qbbwXJthnRvHf6avp6eZNh1weC pS5pJ+kjETeeNgnVO8jeTd/J9vzRTg8/TW5YOwYTmZA4wIJDn34dTC/zWmYEpXI3LJD1VLpiIw4 vdDmsGJhsmyhq9yaS9wTxHDTWCEq8DqJcruk04VI9NqaLcg7LPXcfAcM1QILQgynHcvIOHKwRD9 ZtPMyif2UBUN2PjTPnJUnLt6kjwPfdMkIM6qZdJpfxNShRB4Dwf4TuziU/vypLAmsaSqwRqZNNZ PE8x+bzLcG9aU8h8wqN/W1rEi+j0WgVtasj7sk/0W1hyT0z2dP18YsxaRvOgmU0tNaBcPZNG20K frOicJog8oaV4= X-Google-Smtp-Source: AGHT+IHgHD3HqjDQ+kcgDaRvDhsZApxeDIHf40jhpRi6VZ+X4554xCGbJDUiDLH4UljwBqzDyq59XQ== X-Received: by 2002:a05:6a00:dd:b0:77f:43e6:ce65 with SMTP id d2e1a72fcca58-7a284abd8bbmr7856111b3a.0.1761537056877; Sun, 26 Oct 2025 20:50:56 -0700 (PDT) Received: from smtpclient.apple ([170.178.170.211]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7a41402ef52sm6450294b3a.20.2025.10.26.20.50.55 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Oct 2025 20:50:56 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: remove obsolete comment in AtEOXact_Inval From: Chao Li In-Reply-To: Date: Mon, 27 Oct 2025 11:50:21 +0800 Cc: Pg Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <9ED67E9F-9735-4033-AF27-31A674DE75C8@gmail.com> References: To: Steven Niu 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 Oct 27, 2025, at 10:43, Steven Niu wrote: >=20 > Hi, Hackers, >=20 > When I read the code, I noticed there is one line of comment in = function AtEOXact_Inval() which is obviously obsolete. >=20 > "This should be called as the last step in processing a = transaction" =20 >=20 > Steven<0001-PATCH-remove-obsolete-comment-in-AtEOXact_Inval.patch> +1 The comment of "void AtEOXact_Inval(bool isCommit): ``` * Note: * This should be called as the last step in processing a transaction. ``` Was added 29 years ago. However, looking at CommitTransaction(): ``` /* * Make catalog changes visible to all backends. This has to happen after * relcache references are dropped (see comments for * AtEOXact_RelationCache), but before locks are released (if anyone is * waiting for lock on a relation we've modified, we want them to know * about the catalog change before they start using the relation). */ AtEOXact_Inval(true); AtEOXact_MultiXact(); # <=3D=3D=3D added 21 years ago ``` it seems the newer change has made the original comment inaccurate. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/