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 1faF3h-0007p4-Mt for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Jul 2018 06:45:05 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1faF3e-0002a5-Vy for pgsql-hackers@arkaria.postgresql.org; Tue, 03 Jul 2018 06:45:02 +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 1faF3e-0002Zl-DX for pgsql-hackers@lists.postgresql.org; Tue, 03 Jul 2018 06:45:02 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1faF3b-0008QI-Hd for pgsql-hackers@postgresql.org; Tue, 03 Jul 2018 06:45:00 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id C7EDB1C5; Tue, 3 Jul 2018 02:44:57 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 03 Jul 2018 02:44:58 -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=jurx1rwUVTYVRSSf/QxCSgpvmHtWGm4aeIqm6h7MM1o=; b=QS2wtJzr HTDvFm/lGnHcnn+MZEvKIobDtLZKvZ3wO3u0xklXu3OJoEhATvEDpbq1W/0GUVow LHrrBdB2VPmgkJdTdA+FflZa5ehCOeY1QxOUN4uKGDH1n+dTgsvONPnfHgqyRs5J /GofQQsxXey58EzRqPXjoHuj9KlVWUbe6a1LxhIDpdKREiLEPpUY4/OLYZfsogjd W92AnjbDbx9j67ed8c6/2OpLWx8o+tOUx45ccpfFwe5NfFKr15+UEsxIJJKmK6fA TYfxK+xzpRJr6vgnJsM9E0nB24fhg7ltlX2fYCj5CAnrBhrsUF3YyTpJFatvvSyC GsZz45lFeBF0Wg== 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=jurx1rwUVTYVRSSf/QxCSgpvmHtWG m4aeIqm6h7MM1o=; b=HfrWxSV2aJHpEibfbxgf3RcRJq2e/XIn5gYyDw0PHK+zv eiFiYhg2bnIatmSXSOfjaOx8Z9Z0D5GnROMA42N5pzwj0wtfO9pZH9o/IyghJMgq jyjL0f88mimousqrRH/0BIXOa6lZm0Km1llrMpFxXo7N2LQzF325i7Qmo2UJP+Yk WGpHnNBjb/Iltsu7oVkDMISxB0FvUWAB9gcFBQX3WQGLWlc9CwclSv2qIbwCwYZ5 Ewj38r+PVTiUHQrJylcuIBLFVGDmeZjU54fnzJtqr35tpnLtDU9uttWn5LH9D91v e3pPATJozwIdqlCJ3sqUrNkvsiXFrIiwR7LT137BA== 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 065FDE4621; Tue, 3 Jul 2018 02:44:54 -0400 (EDT) Date: Tue, 3 Jul 2018 15:44:52 +0900 From: Michael Paquier To: Amit Langote Cc: David Rowley , Robert Haas , Postgres hackers Subject: Re: pgsql: Clarify use of temporary tables within partition trees Message-ID: <20180703064452.GB11732@paquier.xyz> References: <20180702221650.GA2159@paquier.xyz> <20180703045502.GA26236@paquier.xyz> <20180703061119.GA11732@paquier.xyz> <5db5fe6e-4a73-6a24-09e4-060b9f132ea9@lab.ntt.co.jp> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="TakKZr9L6Hm6aLOc" Content-Disposition: inline In-Reply-To: <5db5fe6e-4a73-6a24-09e4-060b9f132ea9@lab.ntt.co.jp> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --TakKZr9L6Hm6aLOc Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 03, 2018 at 03:29:36PM +0900, Amit Langote wrote: > Why is this not near the beginning of expand_partitioned_rtentry()? >=20 > Also, ISTM, this code would be unreachable because > expand_inherited_rtentry would not call here if the above if statement is > true, no? FWIW, I understood that the intention here is to be careful, particularly if expand_partitioned_rtentry begins to get called from a different code path in the future, which is something that would likely happen. We could replace that by an assertion or even an elog(), and change again this code in the future, now what's proposed here makes quite some sense to me as well. -- Michael --TakKZr9L6Hm6aLOc Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEG72nH6vTowiyblFKnvQgOdbyQH0FAls7G2QACgkQnvQgOdby QH3rwA/+OnoST7kBy2n6BxsokYgWDk4CdeHHpgDDb/VAh9SR+6rxH4yJQUzW7BVh FNlzWbZ0WBpZ3Qu3ESC2iYfD7n9xK/bqGiXEy1yXfh0rzPt9UnvODpmZKQbmGIQ7 bVYNY3mtjPn0nzndUQrqC5kbsd3xHsx07xZIgSAl6P1cChNZYZIEtkPLbMLYGn3P eQZ9CM3aq1s/KF1hd2CN+/qsOAMaqlEu9s2+KwVbjfT1cgCZBimzwg/vb2nPNeOT qt4dNdM57HxzGsqw4yMjmS8lFq27Y/AtiXR3UJ/cNq7v3VffkAbbE3wC1YGoDbzM 1NE34+O21e4BDtiBRcOvRuiL6Vv0II32j3knl8VOfGyWW93GpA7Z/rZLK0oofuYY g/H2ihkOiESPPOFlKns9PYc7FJg9t3xVGWlaJMeUOzqHy2vHOgkekAoQ7Xe7Isxa +gkRH/EpDqYtaVmEvGyE2n8j+Ws0wcfE7ljony0N6E62hfkBvPv1Sx6MvdsndpBr R9fJ61OzGnjm9d/73AWbXQ46f+yLzJyJ8EjfVglXeb2pnzmhI4EGfKAZbyIeHt0e rZneeTUu/sh18SsvgMH4IFYbyx8NCPS1a8r1AfZsnAvEjANGh2FUb+QZlFyibU3q ElSI7x+1onp0YaaV3+mdMEA1zay/nwjSqzyZkv/z777TiBWuLds= =QarO -----END PGP SIGNATURE----- --TakKZr9L6Hm6aLOc--