Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEdsG-0000eh-2d for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Apr 2019 17:52:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hEdsE-0002Kl-Pk for pgsql-hackers@arkaria.postgresql.org; Thu, 11 Apr 2019 17:52:30 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEdsC-0001uW-ID; Thu, 11 Apr 2019 17:52:30 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hEds9-000879-7n; Thu, 11 Apr 2019 17:52:27 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 7016523180; Thu, 11 Apr 2019 13:52:24 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Thu, 11 Apr 2019 13:52:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=dxBUGYRVXCFJTTGDrbzrZb8yk5K rO/MuY+yEVsnEQUg=; b=IrWBJKPTntQEfelUHY0qXC1wSVT29Z2iPjDMSZUYxsL mbbcUIeq6k3TNoxTkm/sd4zP1u4nLhSIao7z938ek/rwf3MzwdST2tYdAFQxq2R4 gvgXuCsKhwZ9V5gk/0h6LrUtmrxAnUG4QGKzbgUg9NxUMCq2+WQW7MNPqyHpvZjQ XgSZHNgGYPUeij/gvXzoS5nnyiuGhX2Pwfi3gR6cDQ85KT9SaOaCoeAAHHspXfpe ABUiEevDl+LMX3AXBGZmTZm/vw7CFsFr99XKtv2HvJK6kk55QqI73Vb/q1R5+fKj hXtQoNIaZz8hgf+F97rpqMfkKbnZNDKbzOJsZ76jSWw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=dxBUGY RVXCFJTTGDrbzrZb8yk5KrO/MuY+yEVsnEQUg=; b=B2BkDtMPbKkh4ghiLRKWXo mCy3FGNJEZRh/rIpsa/162qYRO6+mQ0jkBv498ntAGTjoXTokfMcjsrSAh7NB689 UEen65gZtLKA7WfEWVQY5Rq/U1P/LlViIvDODGZkPgA0Q4NylNOGaBH9IppF+lQs f3RGbaBXXnxK2sWtflae3VQmm4+JJxL5irpHaH1Fx5u6hVJgJ9nKkFbVZiN0oA/m o63ozDWVT43d33WtVo7mh5Zm9GhioTKAMoV1e0K1cwCukUDwM7Fpusxac6+c2qVX oY88AQbL01f/afom3BGR2zeGPhjm9ohLf8AA6XiNsyNG4X4s54IvcmFkEF5RBNqA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddrudelgdduudelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucfkpheple ekrddvuddtrddugedtrddujedunecurfgrrhgrmhepmhgrihhlfhhrohhmpegrnhgurhgv shesrghnrghrrgiivghlrdguvgenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from intern.anarazel.de (c-98-210-140-171.hsd1.ca.comcast.net [98.210.140.171]) by mail.messagingengine.com (Postfix) with ESMTPA id 7B788103C9; Thu, 11 Apr 2019 13:52:22 -0400 (EDT) Date: Thu, 11 Apr 2019 10:52:20 -0700 From: Andres Freund To: Tom Lane Cc: "Inoue, Hiroshi" , pgsql-hackers@postgresql.org, Heikki Linnakangas , Michael Paquier , Hiroshi Inoue , pgsql-odbc@postgresql.org Subject: Re: setLastTid() and currtid() Message-ID: <20190411175220.pktsk4zyjyjpfibk@alap3.anarazel.de> References: <20190326004442.l2jq43inhakuruzn@alap3.anarazel.de> <17ef5a8a-71cb-5cbf-1762-dbb71626f84e@dream.email.ne.jp> <20190411165214.5jvyldjgdlsxz2ax@alap3.anarazel.de> <21495.1555003623@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <21495.1555003623@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi, On 2019-04-11 13:27:03 -0400, Tom Lane wrote: > Andres Freund writes: > > On 2019-03-27 10:01:08 +0900, Inoue, Hiroshi wrote: > >> The above code remains only for PG servers whose version < 8.2. > >> Please remove the code around setLastTid(). > > > Does anybody else have concerns about removing this interface? Does > > anybody think we should have a deprecation phase? Should we remove this > > in 12 or 13? > > I think removing it after feature freeze is not something to do, > but +1 for nuking it as soon as the v13 branch opens. Unless > there's some important reason we need it to be gone in v12? No, I don't think there really is. They're bogus and possibly a bit dangerous, but that's not really new. I was mostly just reminded of this when Heikki asked me to improve the documentation for heap_get_latest_tid/table_get_latest_tid() - and I was briefly wondering whether we could just nuke the whole functionality. But it's still used in nodeTidscan.c: /* * For WHERE CURRENT OF, the tuple retrieved from the cursor might * since have been updated; if so, we should fetch the version that is * current according to our snapshot. */ if (node->tss_isCurrentOf) table_get_latest_tid(heapRelation, snapshot, &tid); If we were able to just get rid of that I think there'd have been a strong case for removing $subject in v12, to avoid exposing something to new AMs that we're going to nuke in v13. The only other reason I can see is that there's literally no use for them (bogus and only used by pgodbc when targeting <= 8.2), and that they cost a bit of performance and are the only reason heapam.h is still included in nodeModifyTable.h (hurting my pride). But that's probably not sufficient reason. Greetings, Andres Freund