Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFozY-0005RB-QQ for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2014 18:02:00 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WFozY-0003rh-2f for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2014 18:02:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFozX-0003ra-4y for pgsql-bugs@postgresql.org; Tue, 18 Feb 2014 18:01:59 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFozP-00078c-Uq for pgsql-bugs@postgresql.org; Tue, 18 Feb 2014 18:01:58 +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 s1II1oCw007823; Tue, 18 Feb 2014 13:01:50 -0500 From: Tom Lane To: Joshua Yanovski cc: pgsql-bugs@postgresql.org Subject: Re: BUG #9227: Error on SELECT ROW OVERLAPS ROW with single ROW argument In-reply-to: References: <20140215035549.24618.37927@wrigleys.postgresql.org> <10303.1392683593@sss.pgh.pa.us> <7547.1392745766@sss.pgh.pa.us> Comments: In-reply-to Joshua Yanovski message dated "Tue, 18 Feb 2014 09:54:54 -0800" Date: Tue, 18 Feb 2014 13:01:50 -0500 Message-ID: <7822.1392746510@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Joshua Yanovski writes: > Great, thanks. Yeah, I was thinking about that too--I am not sure if > there are any other examples of a time where Postgres deliberately > duplicates an argument like that (maybe there could be a check for it > to be a constexpr or something? But that information isn't available > at this point in the analysis process). Yeah, BETWEEN is like that. I'd like to fix it sometime, but it's kind of problematic because of the risk of losing index optimizations (which only understand x >= y and x <= z, not a hypothetical combined node). I think there are no other examples (CASE used to be one, but we fixed that long ago), but haven't trawled the grammar to be sure. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs