pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedHow to find SQL Functions
3+ messages / 3 participants
[nested] [flat]
* How to find SQL Functions
@ 1999-05-04 17:44 G. Anthony Reina <reina@nsi.edu>
0 siblings, 1 reply; 3+ messages in thread
From: G. Anthony Reina @ 1999-05-04 17:44 UTC (permalink / raw)
To: pgsql-sql
I found in the on-line manuals a listing of the math, string, etc.
functions for PostgreSQL. However, I know that there are more than those
listed in the manual.
Is there some PSQL command to list all of the functions that PostgreSQL
recognizes?
Thanks.
-Tony
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [SQL] How to find SQL Functions
@ 1999-05-04 18:06 Ross J. Reedstrom <reedstrm@rice.edu>
parent: G. Anthony Reina <reina@nsi.edu>
0 siblings, 1 reply; 3+ messages in thread
From: Ross J. Reedstrom @ 1999-05-04 18:06 UTC (permalink / raw)
To: pgsql-sql
G. Anthony Reina wrote:
>
> I found in the on-line manuals a listing of the math, string, etc.
> functions for PostgreSQL. However, I know that there are more than those
> listed in the manual.
>
> Is there some PSQL command to list all of the functions that PostgreSQL
> recognizes?
>
functions:
\df [optional function name glob]
operators (there are some weird ones):
\do [opt glob]
you may want to use \o filename to redirect output to a file, then you
can use "grep" and such tools to find functs, etc. based on param types
and description text.
(there are, of course, equivalent SQL statements, that do the same thing
as the above psql convienience functions, using the appropriate system
tables (pg_*), which would allow one to avoid files and grep. But for
learning, there's a catch-22, and I already knew how to use grep ;-)
Ross
--
Ross J. Reedstrom, Ph.D., <reedstrm@rice.edu>
NSBRI Research Scientist/Programmer
Computer and Information Technology Institute
Rice University, 6100 S. Main St., Houston, TX 77005
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [SQL] How to find SQL Functions
@ 1999-05-04 23:50 Tom Lane <tgl@sss.pgh.pa.us>
parent: Ross J. Reedstrom <reedstrm@rice.edu>
0 siblings, 0 replies; 3+ messages in thread
From: Tom Lane @ 1999-05-04 23:50 UTC (permalink / raw)
To: Ross J. Reedstrom <reedstrm@rice.edu>; +Cc: pgsql-sql
"Ross J. Reedstrom" <reedstrm@rice.edu> writes:
> \df [optional function name glob]
> (there are, of course, equivalent SQL statements, that do the same thing
> as the above psql convienience functions, using the appropriate system
> tables (pg_*), which would allow one to avoid files and grep. But for
> learning, there's a catch-22, and I already knew how to use grep ;-)
BTW, 6.5 psql has a new command-line switch option -E, which causes it
to display the SQL statements that it issues to carry out special
commands like \df. Makes a great learning tool when you want to see
what the system tables contain.
regards, tom lane
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~1999-05-04 23:50 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-05-04 17:44 How to find SQL Functions G. Anthony Reina <reina@nsi.edu>
1999-05-04 18:06 ` Ross J. Reedstrom <reedstrm@rice.edu>
1999-05-04 23:50 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox