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 1hRmnI-00043s-GZ for pgsql-hackers@arkaria.postgresql.org; Sat, 18 May 2019 00:01:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hRmnG-0004dx-9f for pgsql-hackers@arkaria.postgresql.org; Sat, 18 May 2019 00:01:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRmnE-0004dq-9L for pgsql-hackers@lists.postgresql.org; Sat, 18 May 2019 00:01:42 +0000 Received: from new4-smtp.messagingengine.com ([66.111.4.230]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRmn9-0007Bm-5I for pgsql-hackers@postgresql.org; Sat, 18 May 2019 00:01:39 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.nyi.internal (Postfix) with ESMTP id 5527B1F978; Fri, 17 May 2019 20:01:33 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Fri, 17 May 2019 20:01:33 -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=Z2bCVs2T0KF6SOwfJ0N91e5Rs2c GMTk7MtLgsXZlTNk=; b=aDbp9nAhh9aW8twE+JOWxqqOmzRTz37RdF6y8BMBniS XsciZAvF6bwmIRWjC86s+ADCgcEm6eC8h3So3b0nDnREeZqSUCD46iTY9Y2WVl5x /RPjflhw0nxSo4nOjUrRyqUoqoKaVGJNT9xuZF2mYDpTWs18AJ/SJW2gd2peN4S7 Oc/Gd0LzJy560SsusCb4+ZL7z4/R5ezC/h3+9cu1WDu18DnWibK1mM0EOvNqLW7O ECUzk8bJ+OKs7bZFeXyaYEnVzOK+Ud6J55r0VjHIyiIDemEqDI6B6X5mcGyM9Aac ZShrLNImFMY/4/bv8qYtL9FkKhAe141ua/cI+xkAPKg== 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=Z2bCVs 2T0KF6SOwfJ0N91e5Rs2cGMTk7MtLgsXZlTNk=; b=Ju6x5mgMURGnM2dd0TKa/o fKOHhOQPJjD5sTa6fS72H2N2JV2OmWKc193cq7MMhbhlBERKaOuvWta0FGMcVuIa WmhH2X3yBcImroBe8YWPm2bJbCJK1GMB6/mbqoibPxzZXt4tx4MbNMNkTKaeFBbu ZJp53E0MPztq288lpdq4NCKyRb81whNqh8cTJJgjTmEF8C+EWAaIlMJdR2nAdMSH Ut5RqRQVx0ihiN5nkGrQx4ZTu5d4t8/6IrH1utg+gaGL5CiMqFuqq9OHxvxA3sFE FOlexwps5kZn1vCbnEeSb6jsMjO7po4iO6yUAz3WtW6qZ1CP36JNW/5MMRvuNCZQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduuddruddtfedgvdejucetufdoteggodetrfdotf 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 5373F1037C; Fri, 17 May 2019 20:01:31 -0400 (EDT) Date: Fri, 17 May 2019 17:01:29 -0700 From: Andres Freund To: Ashwin Agrawal Cc: Heikki Linnakangas , Tom Lane , Justin Pryzby , Haribabu Kommi , Kyotaro HORIGUCHI , Alvaro Herrera , David Rowley , Robert Haas , Asim R P , PostgreSQL mailing lists , Dmitry Dolgov <9erthalion6@gmail.com>, Alexander Korotkov Subject: Re: Pluggable Storage - Andres's take Message-ID: <20190518000129.rtqrcf2f3wpsle67@alap3.anarazel.de> References: <20190402005352.64hk76gddvs36uwl@alap3.anarazel.de> <20190402215743.cfiwzlk2szwq4jp3@alap3.anarazel.de> <20190404055138.GA24864@telsasoft.com> <20190405165101.mosiflz6slokm2oo@alap3.anarazel.de> <9a7fb9cc-2419-5db7-8840-ddc10c93f122@iki.fi> <20190423225201.3bbv6tbqzkb5w7cw@alap3.anarazel.de> <20190425224315.mzgusflgimaogyqb@alap3.anarazel.de> <20190515185447.gno2jtqxyktylyvs@alap3.anarazel.de> 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: Precedence: bulk Hi, On 2019-05-17 16:56:04 -0700, Ashwin Agrawal wrote: > Question on the patch, if not too late > Why call table_beginscan() in TidNext() and not in ExecInitTidScan() ? > Seems cleaner to have it in ExecInitTidScan(). Largely because it's symmetrical to where most other scans are started ( c.f. nodeSeqscan.c, nodeIndexscan.c). But also, there's no need to incur the cost of a smgrnblocks() etc when the node might never actually be reached during execution. Greetings, Andres Freund