Thread: How to obtain the code af a function ?

How to obtain the code af a function ?

From
"ctobini"
Date:
Hello,

I would like to know how to liste the contain of a fonction.

Writing \df in psql, I have a list of functions and triggers, but and
don't know how to obtain the code of those functions.

Thanks.

C. Tobini


Re: How to obtain the code af a function ?

From
Csaba Nagy
Date:
Use \df+ instead of \df
The additional "+" will give more details in many of the \ commands.

Cheers,
Csaba.

On Wed, 2005-11-09 at 14:40, ctobini wrote:
> Hello,
>
> I would like to know how to liste the contain of a fonction.
>
> Writing \df in psql, I have a list of functions and triggers, but and
> don't know how to obtain the code of those functions.
>
> Thanks.
>
> C. Tobini
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive FAQ?
>
>                http://www.postgresql.org/docs/faq


Re: How to obtain the code af a function ?

From
Richard Huxton
Date:
ctobini wrote:
> Hello,
>
> I would like to know how to liste the contain of a fonction.
>
> Writing \df in psql, I have a list of functions and triggers, but and
> don't know how to obtain the code of those functions.

Start psql with -E and you'll see how all the backslash \d? commands work.


--
   Richard Huxton
   Archonet Ltd

Re: How to obtain the code af a function ?

From
"A. Kretschmer"
Date:
am  09.11.2005, um  5:40:14 -0800 mailte ctobini folgendes:
> Hello,
>
> I would like to know how to liste the contain of a fonction.

You can find this in information_schema.routines.


>
> Writing \df in psql, I have a list of functions and triggers, but and
> don't know how to obtain the code of those functions.

Type \df+ <your_function>. Hint: switch with \x


HTH, Andreas
--
Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47212,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
 ===    Schollglas Unternehmensgruppe    ===