How to obtain the code af a function ?

Started by ctobiniover 20 years ago4 messagesgeneral
Jump to latest
#1ctobini
ctemp2@free.fr

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

#2Csaba Nagy
nagy@ecircle-ag.com
In reply to: ctobini (#1)
Re: How to obtain the code af a function ?

Use \df+ instead of \df
The additional "+" will give more details in many of the \ commands.

Cheers,
Csaba.

Show quoted text

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

#3Richard Huxton
dev@archonet.com
In reply to: ctobini (#1)
Re: How to obtain the code af a function ?

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

#4A. Kretschmer
andreas.kretschmer@schollglas.com
In reply to: ctobini (#1)
Re: How to obtain the code af a function ?

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 ===