Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dKaFA-0007vm-Rz for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Jun 2017 01:03:40 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dKaFA-00060c-78 for pgsql-hackers@arkaria.postgresql.org; Tue, 13 Jun 2017 01:03:40 +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 1dKaF8-0005yA-Ah for pgsql-hackers@postgresql.org; Tue, 13 Jun 2017 01:03:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dKaF5-0005RY-N7 for pgsql-hackers@postgresql.org; Tue, 13 Jun 2017 01:03:37 +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 v5D13Vtt021644; Mon, 12 Jun 2017 21:03:31 -0400 From: Tom Lane To: Andres Freund cc: Mark Dilger , Regina Obe , PostgreSQL-development Subject: Re: PostgreSQL 10 changes in exclusion constraints - did something change? CASE WHEN behavior oddity In-reply-to: <20170613003228.2o7plhmcynzaubwz@alap3.anarazel.de> References: <4125B63A-886A-442D-9932-34F0D4F76D41@gmail.com> <20170604193521.ha6d5kpkdswmissm@alap3.anarazel.de> <63850C96-9570-4969-8074-7033DA4C334F@gmail.com> <20170604211942.aiavcbagsho5owcz@alap3.anarazel.de> <13450.1496861842@sss.pgh.pa.us> <25987.1496977553@sss.pgh.pa.us> <20170609032619.crv3skkf7tvzj63j@alap3.anarazel.de> <27103.1496979469@sss.pgh.pa.us> <5259.1497044025@sss.pgh.pa.us> <20170613003228.2o7plhmcynzaubwz@alap3.anarazel.de> Comments: In-reply-to Andres Freund message dated "Mon, 12 Jun 2017 17:32:28 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <21642.1497315811.1@sss.pgh.pa.us> Date: Mon, 12 Jun 2017 21:03:31 -0400 Message-ID: <21643.1497315811@sss.pgh.pa.us> 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 Andres Freund writes: > Possibly too hard to be precise enough in a hint, but a number of these > could benefit from one suggesting moving things into FROM, using > LATERAL. Maybe "You might be able to move the set-returning function into a LATERAL FROM item."? > I'm kinda positively surprised at how non-invasive this turned out, I'd > afraid there'd be a lot more verbosity to it. I think the improved > error messages (message & location), are quite worthwhile an their own. Yeah, me too --- I'm pretty pleased with the result. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers