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 1h1fho-00057q-6Z for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Mar 2019 23:12:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h1fhl-0003nz-1i for pgsql-hackers@arkaria.postgresql.org; Wed, 06 Mar 2019 23:12:05 +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 1h1fhj-0003gH-2m for pgsql-hackers@lists.postgresql.org; Wed, 06 Mar 2019 23:12:04 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h1fhf-0007oZ-Bw for pgsql-hackers@postgresql.org; Wed, 06 Mar 2019 23:12:01 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 5ED6822809; Wed, 6 Mar 2019 18:11:58 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Wed, 06 Mar 2019 18:11:58 -0500 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=y8PfiB6YoyLdvqLy/mgDqIu0vYd /UTJNSxmYIUqWzO0=; b=zqb1I2glbVEtfPidH2whFlOskXRLpXRgbBSkP2UIP6N bLnbUNACFkdr8BrnV5nZ0MEJj/L3y7Ve4AX6GtIsP/yMnYl2NIWUpqElyJhMgNww EgRoCu+YZimkXw/KZYwB8gRvbQQ3FXwo3EbyWg1vS6DLacMoAWGzXlFQDkD3uXuJ EoOQzLOVl6eSy42aDkQRgOCvITGGJ0Umey6dopvgrhBWRPOSzcrkuU2g/ZBZQh6W V6R/kL2B1t4ImdD0aJpBvqD5/YRtOrsEc4y92mhveSvsbSLBOhHxdSIVeiDtsTOT 4QVmdkY7CVUYuCwnHgCeIgIYsgQk2aTshVxO2WcrrcQ== 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=y8PfiB 6YoyLdvqLy/mgDqIu0vYd/UTJNSxmYIUqWzO0=; b=Fp0VCKY/kx/ENV3qPBaBKj zyQuAqfndoA9QxtN35DNR3e/YNlJy6lP1KhGCeS5g1D5BOvVktXuFcL7jjEFGwBg 1L+31gB//+DBezu8XMFzAh/NxvAxDVyTwRgRt3m1dxu3/LEkSQoL4i3xxBt0Px86 H8T0vOWpLv2cEmWLNVMLL3fVnvLEKptCGR48+gcc5Dxspo0hV0fyNbYHohrJJYIy +bb5ieprF7lHDmusFwmOn5Th3zd8arRpvqq+yL2/EbcCF2Si4LnSiUZiEW5tdFib bs39WJyWfm6w4M1cvuEZ/yag3dVbmkodcyhhU+oFeD1XfRTf48ecJndl8jWHgW3g == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedutddrfeejgddthecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomheptehnughrvghs ucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecukfhppeelke drvddutddrudegtddrudejudenucfrrghrrghmpehmrghilhhfrhhomheprghnughrvghs segrnhgrrhgriigvlhdruggvnecuvehluhhsthgvrhfuihiivgeptd 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 0A168E4519; Wed, 6 Mar 2019 18:11:57 -0500 (EST) Date: Wed, 6 Mar 2019 15:11:55 -0800 From: Andres Freund To: David Rowley Cc: Alvaro Herrera , Robert Haas , Haribabu Kommi , Asim R P , Pg Hackers , aagrawal@pivotal.io, Dmitry Dolgov <9erthalion6@gmail.com>, Alexander Korotkov , Heikki Linnakangas Subject: Re: Pluggable Storage - Andres's take Message-ID: <20190306231155.zu6meo7g2pfgieyi@alap3.anarazel.de> References: <20181127015557.unah7opawwrvr3us@alap3.anarazel.de> <20181211021340.mqaown4njtcgrjvr@alap3.anarazel.de> <20190121030115.unoxypsx3dxosyeg@alap3.anarazel.de> <20190227172931.vxg4kuu7gjcwgz76@alap3.anarazel.de> <20190306070721.dd34u7g7ogtlvf7n@alap3.anarazel.de> <20190306193324.5gubgbbs6rnaacgv@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-03-07 11:56:57 +1300, David Rowley wrote: > On Thu, 7 Mar 2019 at 08:33, Andres Freund wrote: > > Here's a cleaned up version of that patch. David, Alvaro, you also > > played in that area, any objections? I think this makes that part of the > > code easier to read actually. Robert, thanks for looking at that patch > > already. > > I only had a quick look and don't have a grasp of what the patch > series is doing to tuple slots, but I didn't see anything I found > alarming during the read. Thanks for looking. Re slots - the deal basically is that going forward low level operations, like fetching a row from a table etc, have to be done by a slot that's compatible with the "target" table. You can get compatible slot callbakcs by calling table_slot_callbacks(), or directly create one by calling table_gimmegimmeslot() (likely to be renamed :)). The problem here was that the partition root's slot was used to fetch / store rows from a child partition. By moving mt_existing into ResultRelInfo that's not the case anymore. - Andres