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 1gOpy7-0001zX-3P for pgsql-general@arkaria.postgresql.org; Mon, 19 Nov 2018 20:16:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gOpy4-0006nl-Hg for pgsql-general@arkaria.postgresql.org; Mon, 19 Nov 2018 20:16:24 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1gOpO3-0006zK-UU for pgsql-general@lists.postgresql.org; Mon, 19 Nov 2018 19:39:11 +0000 Received: from smtp1.redcom.com ([192.86.3.143]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gOpO0-0003Eg-Qq for pgsql-general@postgresql.org; Mon, 19 Nov 2018 19:39:11 +0000 Received: from localhost (localhost [127.0.0.1]) by smtp1.redcom.com (Postfix) with ESMTP id 04773A0F3; Mon, 19 Nov 2018 14:39:06 -0500 (EST) X-Virus-Scanned: amavisd-new at redcom.com Received: from smtp1.redcom.com ([127.0.0.1]) by localhost (smtp1.redcom.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RiqDJAoIbk7c; Mon, 19 Nov 2018 14:39:03 -0500 (EST) Received: from pie.redcom.com (pie [192.168.33.15]) by smtp1.redcom.com (Postfix) with ESMTP id AA4B0A0D4; Mon, 19 Nov 2018 14:39:03 -0500 (EST) Received: from exch-02.redcom.com (exch-02.redcom.com [192.168.32.9]) by pie.redcom.com (8.11.7p1+Sun/8.10.2) with ESMTP id wAJJcwl18781; Mon, 19 Nov 2018 14:38:59 -0500 (EST) Received: from exch-02.redcom.com (fd00::ccaa:c259:22f8:6f4b) by exch-02.redcom.com (fd00::ccaa:c259:22f8:6f4b) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Mon, 19 Nov 2018 14:38:58 -0500 Received: from exch-02.redcom.com ([fe80::ccaa:c259:22f8:6f4b]) by exch-02.redcom.com ([fe80::ccaa:c259:22f8:6f4b%12]) with mapi id 15.00.1178.000; Mon, 19 Nov 2018 14:38:58 -0500 From: "Day, David" To: Tom Lane CC: "pgsql-general@postgresql.org" Subject: RE: plpgsql and intarray extension; int[] - int[] operator does not exist ? Thread-Topic: plpgsql and intarray extension; int[] - int[] operator does not exist ? Thread-Index: AQHUgDGkw4ypx+ppc0eKIx7pYMbn26VXdJnw Date: Mon, 19 Nov 2018 19:38:58 +0000 Message-ID: <0074b666251d4e6c8fdae9a4927f4ca2@exch-02.redcom.com> References: <0fd14b7dff1741b988d4f907af745cc4@exch-02.redcom.com> <15705.1542650179@sss.pgh.pa.us> In-Reply-To: <15705.1542650179@sss.pgh.pa.us> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [192.168.84.42] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Tom I was thinking something similar after finding that my test function recrea= ted in the problematic schema would execute correctly As one user-role but not another and that they had different search_path se= ttings. After adding public to search patch for that role all was good. The error message "no operator matches the given name and argument type....= ." does not make me easily come around to a search path issue. In any event thanks much for the assistance. Issue resolved. Dave -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us]=20 Sent: Monday, November 19, 2018 12:56 PM To: Day, David Cc: pgsql-general@postgresql.org Subject: Re: plpgsql and intarray extension; int[] - int[] operator does no= t exist ? "Day, David" writes: > Any suggestions as to why the int[] operations are not understood in the = trigger context.? The search_path in the trigger probably doesn't include public. You could add a "SET search_path =3D whatever" clause to the trigger functi= on definition to ensure it runs with a predictable path. regards, tom lane