Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1aisDt-0003gX-Jd for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Mar 2016 23:29:57 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1aisDs-0000ab-Eh for pgsql-hackers@arkaria.postgresql.org; Wed, 23 Mar 2016 23:29:56 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aisDq-0000aS-KH for pgsql-hackers@postgresql.org; Wed, 23 Mar 2016 23:29:54 +0000 Received: from mail.pcorp.us ([45.58.47.14]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1aisDi-0005V2-VS for pgsql-hackers@postgresql.org; Wed, 23 Mar 2016 23:29:53 +0000 Received: from R (50-78-240-110-static.hfc.comcastbusiness.net [50.78.240.110]) by mail.pcorp.us with ESMTPA ; Wed, 23 Mar 2016 19:29:20 -0400 From: "Regina Obe" To: "'Merlin Moncure'" , "'Tom Lane'" Cc: "'PostgreSQL-development'" References: <001201d18524$f84c4580$e8e4d080$@pcorp.us> <9987.1458754648@sss.pgh.pa.us> In-Reply-To: Subject: Re: PostgreSQL 9.6 behavior change with set returning (funct).* Date: Wed, 23 Mar 2016 19:29:17 -0400 Message-ID: <001901d1855b$d1efd910$75cf8b30$@pcorp.us> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 15.0 Content-Language: en-us Thread-Index: AQJAOxIDzwvHQDnqJ4Ajaj7StqZwdwFUNQ0KASK9jvOedoftYA== X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org > I'm something of a backwards compatibility zealot, but I've become one fo= r very good reasons. Personally, I'd rather we'd define precisely the usag= es that are deprecated (I guess SRF-tlist in the presence of > FROM) and force them to error out with an appropriate HINT rather than gi= ve a different answer than they used to. The problem here is that LATERAL = is still fairly new and there is a huge body of code out there leveraging t= he 'bad' way, as it was for years > and years the only way to do a number o= f useful things. > merlin FWIW: I prefer Merlin's solution of erroring out rather than returning an u= nexpected answer and if it's a buggy behavior it should be eradicated. The reason is this. For many the (..).* ORDER BY .. looks equivalent to t= he lateral.=20=20 More than a trivial amount of my time has been spent explaining to people w= hy their raster queries are so slow because the SRF is called multiple time= s and they should switch to LATERAL usage. So if the old solution is still going to have the same penalty's I would mu= ch assume just scrap it and break people's code in a clear and noticeable w= ay they can't ignore. There is nothing more frustrating than code that still works but gives you = an answer different than what you are expecting. Those kind of bugs stay b= uried for a while. I think as long as it's noted in the release notes of the breaking change i= t's fine and called for if it makes your code cleaner and more manageable. Thanks, Regina --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers