Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUn6A-0000tg-Rn for pgsql-hackers@arkaria.postgresql.org; Sat, 02 May 2020 08:02:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jUn67-0007Y8-8C for pgsql-hackers@arkaria.postgresql.org; Sat, 02 May 2020 08:02:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUn66-0007Xw-C3 for pgsql-hackers@lists.postgresql.org; Sat, 02 May 2020 08:02:07 +0000 Received: from wforward2-smtp.messagingengine.com ([64.147.123.31]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jUn61-0006H6-2K for pgsql-hackers@postgresql.org; Sat, 02 May 2020 08:02:04 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailforward.west.internal (Postfix) with ESMTP id D0132561; Sat, 2 May 2020 04:01:56 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Sat, 02 May 2020 04:01:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=YvWM6vg7KvjfUvlegX5dUdr+cE2sF2x4YSjqbxLCN qw=; b=cCPo3uKhsyJ4OMg1vMPOU5f7E9Grt9qtIcsl4821GhbM//XGpvZOoLmXa fUE4Jys7Hhm7n9H/1UaPs7/9hpq+bKfEzBGshY6M1+V+jbGSMQGj+r/QFGlK1929 jfbJzjnKc31dGZ7KMW/oGQk04efpFfdv6hn/4njY4pSKSPkqAlUXTsf09SPAw+iw 08ClL9SixbE7MM1itJHJ4l+NtqOECwtyY+IFklZnNP3pXXNHkRE1oxSTYglbddPY 8ybKAE5/OLAsb7E2mBs4MiZ7NVgJrTCEjgzvYTORw0z3+PJgqNrWD+/JP8FxKLd4 U2BsKUYDuXVCrQEr2+4XjqTEYAxqw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrieekgdduvdefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhfhokffffgggjggtgfesth ejredttdefjeenucfhrhhomheprfgvthgvrhcugfhishgvnhhtrhgruhhtuceophgvthgv rhdrvghishgvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrdgtohhmqeenucggtffrrg htthgvrhhnpedtveeghedtjedvvedvleejueevjeejtdellefgkeelfeeikeejlefgkedt udeuvdenucffohhmrghinhepvdhnughquhgrughrrghnthdrtghomhenucfkphepleefrd dvgeefrdeirddvgedunecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghi lhhfrhhomhepphgvthgvrhdrvghishgvnhhtrhgruhhtsedvnhguqhhurggurhgrnhhtrd gtohhm X-ME-Proxy: Received: from april.pezone.net (p5df306f1.dip0.t-ipconnect.de [93.243.6.241]) by mail.messagingengine.com (Postfix) with ESMTPA id 9591C328005E; Sat, 2 May 2020 04:01:55 -0400 (EDT) Subject: Re: Unify drop-by-OID functions To: Ranier Vilela References: <331d9661-1743-857f-1cbb-d5728bcd62cb@2ndquadrant.com> Cc: pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: <6ef08d3e-80d8-8731-ea82-bf0b63d040a3@2ndquadrant.com> Date: Sat, 2 May 2020 10:01:54 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020-05-01 23:31, Ranier Vilela wrote: > I can suggest improvements? > > 1. In case Object is cached, delay open_table until the last moment, for > the row to be blocked as little as possible and close the table as > quickly as possible. > 2. In case Object is cached and the tuple is invalid, do not open table. > 3. Otherwise, is it possible to call systable_endscan, after table_close? What do you mean by "object is cached"? In any case, this is a refactoring patch, so significant changes to the internal logic would not really be in scope. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services