Re: Can I search for text in a function? - Mailing list pgsql-general

From Klint Gore
Subject Re: Can I search for text in a function?
Date
Msg-id 48A0CC60.7060000@une.edu.au
Whole thread Raw
In response to Can I search for text in a function?  ("Rob Richardson" <Rob.Richardson@rad-con.com>)
List pgsql-general
Rob Richardson wrote:
> Sometimes I need to track down how something happens in the database
> our application relies on, but whatever's happening may be buried in
> some old function that everybody here has forgotten about long ago.
> IIRC, functions are stored internally merely as fields in a table
> owned by the system.  Is there a query I can use to find what function
> contains the string "previous_charge"?
>
select proname from pg_proc where prosrc ilike '%previous_charge%';

klint.

--
Klint Gore
Database Manager
Sheep CRC
A.G.B.U.
University of New England
Armidale NSW 2350

Ph: 02 6773 3789
Fax: 02 6773 3266
EMail: kgore4@une.edu.au


pgsql-general by date:

Previous
From: Christophe
Date:
Subject: Running a PL/pgSQL function
Next
From: Adrian Klaver
Date:
Subject: Re: Running a PL/pgSQL function