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 1gjCR6-0002hN-V9 for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Jan 2019 00:18:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gjCQ7-000098-9a for pgsql-hackers@arkaria.postgresql.org; Tue, 15 Jan 2019 00:17:31 +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 1gjCQ6-00008w-Vq for pgsql-hackers@lists.postgresql.org; Tue, 15 Jan 2019 00:17:31 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gjCQ4-000182-LX for pgsql-hackers@lists.postgresql.org; Tue, 15 Jan 2019 00:17:29 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id x0F0HO2w031229; Mon, 14 Jan 2019 19:17:24 -0500 From: Tom Lane To: David Rowley cc: Mark Dilger , PostgreSQL Hackers Subject: Re: "SELECT ... FROM DUAL" is not quite as silly as it appears In-reply-to: References: <15944.1521127664@sss.pgh.pa.us> <9565.1539573909@sss.pgh.pa.us> <154342395130.2093.8013327151440360209.pgcf@coridan.postgresql.org> <12357.1543518669@sss.pgh.pa.us> <20472.1546631337@sss.pgh.pa.us> <21565.1547498912@sss.pgh.pa.us> Comments: In-reply-to David Rowley message dated "Tue, 15 Jan 2019 13:11:08 +1300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31227.1547511444.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 14 Jan 2019 19:17:24 -0500 Message-ID: <31228.1547511444@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk David Rowley writes: > 1. I don't think having a table named "dual" makes a whole lot of > sense for a table with a single row. Well, I borrowed Oracle terminology there ;-) > (Uppercasing these additions would also make them look less of an aftert= hought.) Don't really care, can do. > I also did a quick benchmark of v6 and found the slowdown to be > smaller after the change made in build_simple_rel() Thanks for confirming. I was not very sure that was worth the extra few bytes of code space, but if you see a difference too, then it's probably worthwhile. regards, tom lane