Search text of all functions in PGAdmin

jlars62 picture jlars62 · Dec 2, 2014 · Viewed 22.2k times · Source

Using PostgreSQL with pgAdmin, and was wondering if there is a way to search ALL of the functions of a database for a particular text.

Is this possible?

Answer

Andreas picture Andreas · Dec 2, 2014

something like this should work:

select proname,prosrc from pg_proc where prosrc like '%search text%';

see How to display the function, procedure, triggers source code in postgresql?