How to view the functions that exists

Started by Nonameover 24 years ago3 messagesgeneral
Jump to latest
#1Noname
qradius@qnet.com.pe

Hi !

I have a consulta about how Imcan view what are defined on my
database, and their deinitions?

Thank you

Ernesto

---------------------------------------------
Este mensaje fue enviado a trav�s de Qnet
http://www.qnet.com.pe

#2Antoine Reid
antoiner@hansonpublications.com
In reply to: Noname (#1)
Re: How to view the functions that exists

On Fri, Nov 09, 2001 at 04:21:57PM +0000, qradius@qnet.com.pe wrote:

Hi !

I have a consulta about how Imcan view what are defined on my
database, and their deinitions?

When using the command line interface, psql, you can issue:

\df <function>
where it will give you a list of all functions that begin with the supplied
argument. As an example, here, all developers name their functions with a
prefix of sp_ (this must be from using MS SQL..)

so: \df sp_ will give you a list of all functions.

If you want to see the source of the function, you can use

\df+ sp_function_name

and you get to see the source of all functions that begin with that pattern
(again).

Thank you

Ernesto

Hope that helps
Antoine

#3Jan Poslusny
pajout@gingerall.cz
In reply to: Noname (#1)
Re: How to view the functions that exists

I am using 7.1.2
\d pg_proc
and submit some query: select * from pg_proc where ...

Antoine Reid wrote:

Show quoted text

On Fri, Nov 09, 2001 at 04:21:57PM +0000, qradius@qnet.com.pe wrote:

Hi !

I have a consulta about how Imcan view what are defined on my
database, and their deinitions?

When using the command line interface, psql, you can issue:

\df <function>
where it will give you a list of all functions that begin with the supplied
argument. As an example, here, all developers name their functions with a
prefix of sp_ (this must be from using MS SQL..)

so: \df sp_ will give you a list of all functions.

If you want to see the source of the function, you can use

\df+ sp_function_name

and you get to see the source of all functions that begin with that pattern
(again).

Thank you

Ernesto

Hope that helps
Antoine

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

http://archives.postgresql.org