Results 1 to 3 of 3

Thread: View functions

  1. #1
    Join Date
    Dec 2003
    Posts
    11

    Exclamation Unanswered: View functions

    Hi.

    I created a function and now I would like to see how I did it.

    Is there a way to see the definition of a user's defined function ??

    Thanks !
    Pablo Velasquez Rivas
    Computer Science Engineer - ITCR

  2. #2
    Join Date
    Aug 2003
    Posts
    32

    Re: View functions

    Maybe this example will help:

    create function myfunc() returns integer as 'select 1 as result;' language sql;
    select prosrc from pg_proc where proname = 'myfunc';

  3. #3
    Join Date
    Dec 2003
    Posts
    11
    Thanks, it worked.
    That was what I was looking for.
    Pablo Velasquez Rivas
    Computer Science Engineer - ITCR

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •