Re: unable to call a function

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: giozh <giozh(at)yahoo(dot)it>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: unable to call a function
Date: 2013-07-05 13:31:15
Message-ID: 51D6CAA3.5020203@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 07/05/2013 12:29 AM, giozh wrote:
> so thanks to all for the answers. But i'm going to be frustrated, no one of
> your solutions seems to work, and i can't understand why, because i've write
> another two functions that works well...
> I always obtain error: or unknown function (if i pass args without ' ') or
> "column not exist".

So does it work if you quote the table_name and table_column names?
Have you changed the data type to varchar?

> i've noticed that on my postgres server, there's two database: one i've
> created for my scope, and another named postgres (i think created by
> default). Maybe should i specify on wich database my function should work
> (also if function compare only inside my personal database)?

Functions are created per database, To be more precise per schema in a
database. Functions can be overloaded, so it is possible there is more
than one in your database.

To check do the following from the psql propmpt:

\df check_if_if_exist
>

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2013-07-05 13:33:17 Re: How to build postgresql 9.3 beta2 from source with plpython3u handler and postgres_fdw extensions.
Previous Message Dennis Jenkins 2013-07-05 13:24:51 Re: "soft lockup" in kernel