Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFonV-0004d4-1S for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2014 17:49:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WFonU-0000pS-Fc for pgsql-bugs@arkaria.postgresql.org; Tue, 18 Feb 2014 17:49:32 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFonS-0000ny-Rj for pgsql-bugs@postgresql.org; Tue, 18 Feb 2014 17:49:30 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WFonQ-0006pn-3X for pgsql-bugs@postgresql.org; Tue, 18 Feb 2014 17:49:30 +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 s1IHnQ5R007548; Tue, 18 Feb 2014 12:49:26 -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> Comments: In-reply-to Joshua Yanovski message dated "Mon, 17 Feb 2014 22:03:37 -0800" Date: Tue, 18 Feb 2014 12:49:26 -0500 Message-ID: <7547.1392745766@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: > On Mon, Feb 17, 2014 at 4:33 PM, Tom Lane wrote: >> While it would be a reasonably simple change to make this work as >> originally intended, I'm strongly tempted to just rip it out instead, >> and only support the SQL-mandated syntax. If anyone was using this >> undocumented feature, you'd think they'd have complained sometime in >> the last ten years. And making it work would really entail adding >> documentation and a regression test case, so it'd be substantially >> more effort than just killing the "list_length == 1" case. > Attaching a patch to just remove the n == 1 case. It occurred to me that there's an additional reason not to make the code work like Lockhart seems to have envisioned: if it did duplicate the argument like that, that'd lead to double evaluation of any volatile function that's present in the argument. So I've gone ahead and committed this, along with some further fooling around to make the error messages nicer. 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