From: Day, David <david.day@redcom.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-general@postgresql.org <pgsql-general@postgresql.org>
Subject: RE: plpgsql and intarray extension; int[] - int[] operator does not exist ?
Date: Mon, 19 Nov 2018 19:38:58 +0000
Message-ID: <0074b666251d4e6c8fdae9a4927f4ca2@exch-02.redcom.com> (raw)
In-Reply-To: <15705.1542650179@sss.pgh.pa.us>
References: <0fd14b7dff1741b988d4f907af745cc4@exch-02.redcom.com>
<15705.1542650179@sss.pgh.pa.us>
Tom
I was thinking something similar after finding that my test function recreated in the problematic schema would execute correctly
As one user-role but not another and that they had different search_path settings.
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]
Sent: Monday, November 19, 2018 12:56 PM
To: Day, David <david.day@redcom.com>
Cc: pgsql-general@postgresql.org
Subject: Re: plpgsql and intarray extension; int[] - int[] operator does not exist ?
"Day, David" <david.day@redcom.com> 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 = whatever" clause to the trigger function definition to ensure it runs with a predictable path.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: david.day@redcom.com, tgl@sss.pgh.pa.us
Subject: Re: plpgsql and intarray extension; int[] - int[] operator does not exist ?
In-Reply-To: <0074b666251d4e6c8fdae9a4927f4ca2@exch-02.redcom.com>
References: <0fd14b7dff1741b988d4f907af745cc4@exch-02.redcom.com> <15705.1542650179@sss.pgh.pa.us> <0074b666251d4e6c8fdae9a4927f4ca2@exch-02.redcom.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox