Search Postgresql Archives

Re: Trouble Accessing Schema-Qualified Table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



bricklen <bricklen@xxxxxxxxx> writes:
> On Mon, Nov 15, 2010 at 8:35 AM, Jerry Richards
> <jerry.richards@xxxxxxxxxxx> wrote:
>> 
>> teo=# select * from sip_presence('ts_sofia_internal') where
>> sip_presence.sip_user='1003';
>> 
>> ERROR:  function sip_presence(unknown) does not exist

> The problem isn't the schema name, it is with the parameter you are
> using in your function.

While Jerry didn't say so in so many words, I suppose that the query
worked for him before he changed the search path.  In that case the
problem *is* the schema name: his function is in a schema that is no
longer in the search path.  He can either qualify the function name:

	select * from other_schema.sip_presence('ts_sofia_internal') where

or list both schemas in his search_path so that the function can still
be found without a schema name attached.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux