Re: Can I search for text in a function?

From: Klint Gore <kgore4(at)une(dot)edu(dot)au>
To: Rob Richardson <Rob(dot)Richardson(at)rad-con(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Can I search for text in a function?
Date: 2008-08-11 23:33:52
Message-ID: 48A0CC60.7060000@une.edu.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)une(dot)edu(dot)au

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2008-08-12 00:03:55 Re: Running a PL/pgSQL function
Previous Message Christophe 2008-08-11 23:24:17 Running a PL/pgSQL function