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 1gOnmd-0003G8-Fa for pgsql-general@arkaria.postgresql.org; Mon, 19 Nov 2018 17:56: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 1gOnma-0004h7-PT for pgsql-general@arkaria.postgresql.org; Mon, 19 Nov 2018 17:56:24 +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 1gOnma-0004eF-Dp for pgsql-general@lists.postgresql.org; Mon, 19 Nov 2018 17:56:24 +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 1gOnmX-0002jd-Sf for pgsql-general@postgresql.org; Mon, 19 Nov 2018 17:56:23 +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 wAJHuJ7h015706; Mon, 19 Nov 2018 12:56:19 -0500 From: Tom Lane To: "Day, David" cc: "pgsql-general@postgresql.org" Subject: Re: plpgsql and intarray extension; int[] - int[] operator does not exist ? In-reply-to: <0fd14b7dff1741b988d4f907af745cc4@exch-02.redcom.com> References: <0fd14b7dff1741b988d4f907af745cc4@exch-02.redcom.com> Comments: In-reply-to "Day, David" message dated "Mon, 19 Nov 2018 17:12:50 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <15704.1542650179.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 19 Nov 2018 12:56:19 -0500 Message-ID: <15705.1542650179@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "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 function definition to ensure it runs with a predictable path. regards, tom lane