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 1gSRkO-00046W-8i for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Nov 2018 19:13:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gSRkM-0001uN-Uf for pgsql-hackers@arkaria.postgresql.org; Thu, 29 Nov 2018 19:13:10 +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 1gSRkM-0001u9-KT for pgsql-hackers@lists.postgresql.org; Thu, 29 Nov 2018 19:13:10 +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 1gSRkK-0001X6-9Q for pgsql-hackers@lists.postgresql.org; Thu, 29 Nov 2018 19:13:09 +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 wATJD7kE012462; Thu, 29 Nov 2018 14:13:07 -0500 From: Tom Lane To: Alexander Kuzmenkov cc: pgsql-hackers@lists.postgresql.org, Mark Dilger Subject: Re: "SELECT ... FROM DUAL" is not quite as silly as it appears In-reply-to: <338a18ad-344a-8e79-a950-45a41b4b2a33@postgrespro.ru> References: <15944.1521127664@sss.pgh.pa.us> <154342395130.2093.8013327151440360209.pgcf@coridan.postgresql.org> <154342412161.2094.14859341952034622342.pgcf@coridan.postgresql.org> <6d51c9bb-ccc6-92fd-b6ac-05f0d5546d70@postgrespro.ru> <338a18ad-344a-8e79-a950-45a41b4b2a33@postgrespro.ru> Comments: In-reply-to Alexander Kuzmenkov message dated "Thu, 29 Nov 2018 21:29:15 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <12460.1543518787.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 29 Nov 2018 14:13:07 -0500 Message-ID: <12461.1543518787@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Alexander Kuzmenkov writes: > Oh, one more thing: I see a warning without --enable-cassert in = > create_resultscan_plan, because rte is only used in an Assert. > src/backend/optimizer/plan/createplan.c:3457:17: warning: variable =E2=80= =98rte=E2=80=99 = > set but not used [-Wunused-but-set-variable] > =C2=A0 RangeTblEntry *rte; Ooops, I had not seen this before sending v4 patch. Doesn't seem worth posting a v5 for, but I'll be sure to fix it. regards, tom lane