Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1faHPF-0007YC-OD for pgsql-committers@arkaria.postgresql.org; Tue, 03 Jul 2018 09:15:30 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1faHPE-0006HC-5p for pgsql-committers@arkaria.postgresql.org; Tue, 03 Jul 2018 09:15:28 +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_SHA384:256) (Exim 4.89) (envelope-from ) id 1faHPC-0006Go-A7 for pgsql-committers@lists.postgresql.org; Tue, 03 Jul 2018 09:15:28 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1faHP7-0006JR-3X for pgsql-committers@postgresql.org; Tue, 03 Jul 2018 09:15:25 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 50E0521AFA; Tue, 3 Jul 2018 05:15:18 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Tue, 03 Jul 2018 05:15:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paquier.xyz; h= cc:content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=tifP6sn54PqoKNtqlG9/PQyoVhQsQffMMF20c1wQGxk=; b=XFtLwu+q 9p7HmnQ+RiP1fXvRwiIyu2N5pMP+AyjaKqwUj9gqG2rNQqGZ4p8Rf+SfnqS2L5Pn 8EaWDWdFqqqYF9Y+oWChKuue7ee/KLI5c46omakVktz52Efoaf0l9AJSluENC0r3 oUbFniWI8GriMY6LcpeBKAsZ3PRaxSoV3BRJzgV7/eXKi+iPY4vXULnUrQAgFG3a F1ulkCqisUA6b4daOlvwQ18b1HHgSzpZWB1IwnSFRTEc3AHEq8ju5ef419o8OO9r 32BOuHqSB98b/J5eM9ngWq+hHdLLCONOc2XZe6Jaj5wvHCKSbrO7tsl4Ep4GERka fxd99n4F3kAW3w== 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-sender :x-me-sender:x-sasl-enc; s=fm3; bh=tifP6sn54PqoKNtqlG9/PQyoVhQsQ ffMMF20c1wQGxk=; b=YFy8u63sXp5nH1uPWtzS6kGitN5mhCTAkMfCq/WgBUZt7 pCom36G23U5ow3t2goAfJDUt2QyMg9Zb850XRl9JS+I8F9HTR3giCz10EkxnKdJc DFloyUVa9maz+Ho9hSQJiPqVnLLXEa/KvE+gR7rt4BPE3rOMrt15yDJrd+x2WcGk 6TSSZKXlHLKRY08NwbjGpko7yJ8vjlod57wuHLnrwVXtENucjSpL3pkY9f+GSbNE u9n8XdvaE7D6gZ7SFcpS0HvhcqlUlbu8gly6Ltb8tIamltG8LrX/QfmAE/0Mkz+o UsFZS3TKQQliuM7DOZ5F1jHoPmzKQg/1t+S1jfjTA== X-ME-Proxy: X-ME-Sender: Received: from paquier.xyz (c137162.net61215.cablenet.ne.jp [61.215.137.162]) by mail.messagingengine.com (Postfix) with ESMTPA id 20CDF1026A; Tue, 3 Jul 2018 05:15:15 -0400 (EDT) Date: Tue, 3 Jul 2018 18:15:07 +0900 From: Michael Paquier To: David Rowley Cc: Amit Langote , Robert Haas , Ashutosh Bapat , pgsql-committers Subject: Re: pgsql: Clarify use of temporary tables within partition trees Message-ID: <20180703091507.GD11732@paquier.xyz> References: <20180703045502.GA26236@paquier.xyz> <20180703061119.GA11732@paquier.xyz> <5db5fe6e-4a73-6a24-09e4-060b9f132ea9@lab.ntt.co.jp> <20180703070551.GC11732@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="q9KOos5vDmpwPx9o" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --q9KOos5vDmpwPx9o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 03, 2018 at 09:05:41PM +1200, David Rowley wrote: > > [...] > > I'd categorise this one the same as I have #1 above, i.e. not > backpatch material. It seems like something useful to look into for > v12 though. I assumed this was done for a reason and that I just > didn't understand what that reason was. I don't recall any comments to > explain the reason why we build two RangeTblEntrys for each > partitioned table. I agree. Please let's keep v11 stable, and discuss further more on future optimizations like the previous two items for v12, which has plenty of time to be broken. > In light of what Amit has highlighted, I'm still standing by the v3 > patch assuming the typo is fixed. Yeah. Actually I'd like to add a test as well to test the recursion call of expand_partitioned_rtentry. If you have an idea, please let me know or I'll figure out one by myself and add it probably in create_table.sql. -- Michael --q9KOos5vDmpwPx9o Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAls7PpsACgkQnvQgOdby QH0vng//QC4vckisPaSgHNvZUYgeHMv9DFL7Q4Z3WgJ5sfA4vQrSVEWhSCAgCDpZ uzjp6SaiYI8h4cAekJRwCnh2uYNeyT+FX+o270pfmXsLA2VkJ6elsgXbkyfi2qa6 UhjtN9gvE0G8HRXmKtY6MpFjXMhJf03xJ0Syixxo+tKiCEH+woK/NWdcTnA3lwir 41mbN5TtbF0kdZbfAcqFRG200NTRMnK2ukS0tbDXyd/CFHErjThjM6p/Ph4Z52oZ so7sA8JmsMUD46viiEIIF8qkPE9K311rOxu/st5Bi50FP9VnRZIEBb5YT8P8E0W9 mGpjEhDbOh11MATdfX8+kS0r7TiibVyg3YuVmVUurMSJ4lza00zYsajB6RMqmg2b vevP9n6A+GeFSBLrlu2752r8xJsv2SEAI2oYZLddn85BGZHEHqtkTBLeYaiGfQ3S M0RushHer8dG3jvqObQdjtj8o/2kxYLZExilL6FKvoyI6c0PP2Kpmw7PVkHbesP5 RN8IrSvSI03dixAYNG11G5U8SxkaXir8FJD9mnmmXXkKtfkYtQ1pN9aeeB92GLdP os0ztM5UyKrn1Wdi18zAc6xzde8WCRolhnO5y2co7w3QVy5H9nDkuM6nFpNnzOaM x9qID2E9uEuBF+FBIP5pSB4UGrKZuejgAOmhDghRm+D4KU16Xh8= =OPsW -----END PGP SIGNATURE----- --q9KOos5vDmpwPx9o--