Select * from pg_proc where lower(prosrc) = '%<target_string>%'
pgsql-general by date:
Соглашаюсь с условиями обработки персональных данных