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 1gT8NF-0008KW-D8 for pgsql-bugs@arkaria.postgresql.org; Sat, 01 Dec 2018 16:44:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gT8MD-0004u3-Tf for pgsql-bugs@arkaria.postgresql.org; Sat, 01 Dec 2018 16:43:05 +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 1gT8MD-0004tw-K7 for pgsql-bugs@lists.postgresql.org; Sat, 01 Dec 2018 16:43:05 +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 1gT8MA-0001AD-1i for pgsql-bugs@lists.postgresql.org; Sat, 01 Dec 2018 16:43:03 +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 wB1GgxkK018137; Sat, 1 Dec 2018 11:43:00 -0500 From: Tom Lane To: Andrew Gierth cc: pgsql-bugs@lists.postgresql.org, p.otoole@uwyo.edu Subject: Re: BUG #15534: Operators from public schema in trigger WHEN-clauses are silently allowed despite breaking restores In-reply-to: <87k1ktl49y.fsf@news-spur.riddles.org.uk> References: <15534-b06638e5850f55b7@postgresql.org> <87k1ktl49y.fsf@news-spur.riddles.org.uk> Comments: In-reply-to Andrew Gierth message dated "Sat, 01 Dec 2018 14:40:08 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18135.1543682579.1@sss.pgh.pa.us> Date: Sat, 01 Dec 2018 11:42:59 -0500 Message-ID: <18136.1543682579@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Gierth writes: > What's happening here is that IS DISTINCT FROM has a hidden search_path > search in it, that ruleutils doesn't (and can't) handle. Right. A few months ago I posted a list of problems of this ilk (IS DISTINCT FROM is far from the only trouble spot). Too lazy to search the archives for it right now, but the discussion kinda went nowhere AFAIR. regards, tom lane