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 1faJX6-0006T0-1v for pgsql-committers@arkaria.postgresql.org; Tue, 03 Jul 2018 11:31: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 1faJX3-00088O-1N for pgsql-committers@arkaria.postgresql.org; Tue, 03 Jul 2018 11:31:41 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1faJX1-00088B-FG for pgsql-committers@lists.postgresql.org; Tue, 03 Jul 2018 11:31:40 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1faJWw-0006pW-Qe for pgsql-committers@postgresql.org; Tue, 03 Jul 2018 11:31:38 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id C77F220DE4; Tue, 3 Jul 2018 07:31:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 03 Jul 2018 07:31:33 -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=rC2u5iN2c3zXAAM1f0QUeJTaYxaAQw5tBzgKUm86obg=; b=A6rSgkph nOz917gMzeeGJGa7SOFY9HktB23keO//8WTjrQZqeMbtUhvSPtMvAy0VFi4F0Cgp XJwlsQqKhAnP3LE7Am4RwIvQi32rN4yiYj5tgLgN5TG+aET/IQVxlrtGsoRmcLFi PmGaPZ3iu/sz6GWjwuHL/rN67kvkK/yU7EKZ2eVi5xRmgMXurCm8N9gJiP95//TV geVo9SWcY3uzDKoyxxeKb8Qe1AIeLgF/xlfq3w6u4jmPxllvkCJI1d8j9bg45UOQ QR63XNA4qaJe/PhmM+t3OM2S1Om0H9s6MYczwQKlLXmoWjvcndfmA+nHui2904qp Xpf2aIN2fCZwQA== 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=rC2u5iN2c3zXAAM1f0QUeJTaYxaAQ w5tBzgKUm86obg=; b=JkmukVQt7M3/rnAIuH4Mdv+7rI53bAjcTesNv10WbWm3x 4wBISA53FmewnTCrqmUh9cqrvTS5fedJItOu+5NRnTfBOsMM2Vg1YSkbJvQDbZpP 45vHBKTxlTSGoLuxUb+7h1txo1vOnDBLNXRALrKmtU6zmMhaoeMrPe8eVft7XpOL lgwwstEWZaPGy+PAxSWuoVKf1gw3HAFwrfjXPB7y31rnPmeZleU5wfAn/AjCvbOY +go0d9352EojH//lgHHNvL20tB6UeGWNs8VIx1/RJxjkxnhyxsFzEDABP2bT3va4 7kbMFwapYaXWdM0chKnYUBo60xseSRPRLLw+JFtVg== 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 414A4E446D; Tue, 3 Jul 2018 07:31:30 -0400 (EDT) Date: Tue, 3 Jul 2018 20:31:27 +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: <20180703113127.GF11732@paquier.xyz> References: <5db5fe6e-4a73-6a24-09e4-060b9f132ea9@lab.ntt.co.jp> <20180703070551.GC11732@paquier.xyz> <20180703091507.GD11732@paquier.xyz> <20180703095343.GE11732@paquier.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dgjlcl3Tl+kb3YDk" Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --dgjlcl3Tl+kb3YDk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jul 03, 2018 at 11:16:55PM +1200, David Rowley wrote: > Oh okay. Yeah, you can hit that with a partitionless sub-partitioned > table. Thanks for the patch and fixing the typo ;) +create table list_parted_tbl (a int,b int) partition by list (a); +create table list_parted_tbl1 partition of list_parted_tbl for values in(1) partition by list(b); +select * from list_parted_tbl; +explain (costs off) select * from list_parted_tbl; I am not sure if it is much interesting to keep around this table set for pg_upgrade, so I would drop it. Except for that, the result looks fine. I'll double-check and wrap it tomorrow on HEAD and REL_11_STABLE. The optimizations mentioned sound interesting, though I would recommend to not risk the stability of v11 at this point, so let's keep them for v12~. -- Michael --dgjlcl3Tl+kb3YDk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAls7Xo8ACgkQnvQgOdby QH2StQ//bA3OnM+Ut/aAD/AToGE9iqTQ4/MTH7ZDMjqlbi+XOgDCn2AoxqKM+7cI pXNXrQAqwse+kp4wnNK7n6f3TM5JKfjbMDYRlVW9kmfJdpq8tb4sHOTVB39PNIvj uFmAjXm9VoXrK8PrThF1owOvpGGXkwTXw3JZJVb24qOzmcx3NtQkoMbAWuusD8Vv YS+XNJ8OmdDLgED2DF9vfPpuS3gESGDE/wrwQv3nNYC3R/Nielzsm4aa5tDfUESa GX4qndk3asCXWUcAvrbo30raj/32xx2sYJ959rDn6dvY5WTjl1MDHYpBvMD1FiRt nZfV860nla7O2611qpUOoJiOfdj3eXEa6c94k2ppo4zoQ2iSz39pNP9z+6Apms2p GeBe60Pkubgo/fQ9dX6kIrwmmGLsYlJE8ecKsgGzGFCOB9RI+dV2GKPr754Ii7SE eT4gYr2ePE6y/ZXKR2cUhEFGOuyLl+jwl4c+eMjLXPLnOW5IoaGmd7suQySSaAsF h4kM7VSxGgvT9m7QiyJRrvfmtsJ1yKEdoi2VDbxeBlNOOgIrLOC5JwI1IqRNkEYA 3kulh/TX6TqkYY1PGcdipZvFMXP6oy/wGtU3OOReAlRsGPDg6hIBotrHDMg4AYgy wD9ZT4cW0NH4DHj72QffQ2OITxlhVdRlywGwuQ5olAb9Z2g3bF8= =kRU8 -----END PGP SIGNATURE----- --dgjlcl3Tl+kb3YDk--