Re: Superuser can execute but not view function - Mailing list pgsql-novice

From Michael Fuhr
Subject Re: Superuser can execute but not view function
Date
Msg-id 20050825214356.GA68282@winnie.fuhr.org
Whole thread Raw
In response to Superuser can execute but not view function  ("Mike G." <mike@thegodshalls.com>)
List pgsql-novice
On Thu, Aug 25, 2005 at 03:11:03PM -0500, Mike G. wrote:
>
> I have a function that exists (I can call it and execute it) but does
> not appear in pgadmin.  I issued an Alter function owner to postgres
> (the super user) which was successful to check if it was a permission
> problem, refreshed pgadmin and it still does appear.
>
> I then issued a select * from pg_proc and the function does not appear
> in this table.  Should it not be listed in this table?
>
> The function is named surveys_2004.update_total_sent_by_consultant_table(date,date)

If the function exists then it should be in pg_proc.  Could there
be a case issue (uppercase vs. lowercase)?  What's the output of
the following query?

SELECT n.nspname, p.proname, p.proargtypes
FROM pg_proc AS p
LEFT OUTER JOIN pg_namespace AS n ON n.oid = p.pronamespace
WHERE p.proname ILIKE '%update_total_sent_by_consultant_table%';

If the above query returns nothing then please copy-and-paste a
query showing exactly how you call the function and the output that
shows that it exists.

--
Michael Fuhr

pgsql-novice by date:

Previous
From: Josh Berkus
Date:
Subject: Re: query optimization
Next
From:
Date:
Subject: Re: SQL problem?