Re: [GENERAL] How to display user-defined functions?

Поиск
Список
Период
Сортировка
От Teodor Cimpoesu
Тема Re: [GENERAL] How to display user-defined functions?
Дата
Msg-id 37CC6C85.480B8685@digiro.net
обсуждение исходный текст
Ответ на How to display user-defined functions?  (Mark Dalphin <mdalphin@amgen.com>)
Список pgsql-general
Mark Dalphin wrote:
>
> Hi,
>
> Is there a way to display user-defined functions?  For example, if I define a
> function using PL/pgsql, what tables do I query and in what way to learn that
> the function exisits and further, what its defintion is? I can find functions
> that return known types, eg getTimeStamp, below, shows up with '\df', however
> functions defined returning type "opaque" do not show up, eq,
> "exon_foreign_keys", below.

afaik this *should* work:
SELECT * FROM pg_proc WHERE procname='your_f_name_here';
I'm not sure of "procname",though
also try to display system tables (I think \dS or something)
and peek into other suspicious pg_* tables :)
[snip]
--
CIMPOESU Teodor, Web Programmer (h)
@ DIGICOM S.A. Bucharest, Romania
@ Internet, site development
@ teo@digiro.net, +(401)-330.47.28

official home page ~ http://www.digiro.net/
Internet web  page ~ http://internet.digiro.net/

В списке pgsql-general по дате отправления:

Предыдущее
От: Teodor Cimpoesu
Дата:
Сообщение: Re: [GENERAL] change null to ""
Следующее
От: Howie
Дата:
Сообщение: Re: [GENERAL] PostgreSQL table data structure generator...