Re: Trouble Accessing Schema-Qualified Table

From: bricklen <bricklen(at)gmail(dot)com>
To: Jerry Richards <jerry(dot)richards(at)teotech(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Trouble Accessing Schema-Qualified Table
Date: 2010-11-15 17:01:07
Message-ID: AANLkTik8pwk7n33Sbt4nBrMFgAWgO=3JA1YU99A7Uo2V@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Mon, Nov 15, 2010 at 8:35 AM, Jerry Richards
<jerry(dot)richards(at)teotech(dot)com> wrote:
>
> teo=# select * from sip_presence('ts_sofia_internal') where
> sip_presence.sip_user='1003';
>
> ERROR:  function sip_presence(unknown) does not exist
>
> LINE 1: select * from sip_presence('ts_sofia_internal') where sip_pr...
>                       ^
> HINT:  No function matches the given name and argument types. You might need
> to add explicit type casts.

The problem isn't the schema name, it is with the parameter you are
using in your function. Since you don't show the definition of your
function, I'm going to take a guess and assume your input
'ts_sofia_internal' is a TEXT type, so you might do something like:

select * from sip_presence('ts_sofia_internal'::TEXT) where ...

If not "TEXT" type, check your function to see what it expects the type to be

\df sip_presence

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-11-15 17:33:49 Re: Trouble Accessing Schema-Qualified Table
Previous Message Scott Ribe 2010-11-15 16:40:52 Re: identifying local connections