Re: How do I find a trigger function that is raising notices?

From: Rob Richardson <RDRichardson(at)rad-con(dot)com>
To: bricklen <bricklen(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: How do I find a trigger function that is raising notices?
Date: 2013-09-26 16:25:19
Message-ID: 67D108EDFAD3C148A593E6ED7DCB4BBDC3FB2DDE@RADCONWIN2K8PDC.radcon.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks very much. I was searching for a string containing an upper-case letter without remembering that I used lower(). And your suggestion of ilike is much better than like here.

RobR

From: bricklen [mailto:bricklen(at)gmail(dot)com]
Sent: Thursday, September 26, 2013 12:05 PM
To: Rob Richardson
Cc: pgsql-general
Subject: Re: [GENERAL] How do I find a trigger function that is raising notices?

On Thu, Sep 26, 2013 at 9:04 AM, Rob Richardson <RDRichardson(at)rad-con(dot)com<mailto:RDRichardson(at)rad-con(dot)com>> wrote:
Select * from pg_proc where lower(prosrc) = '%<target_string>%'

A slight revision should work:

select distinct proname from pg_proc where prosrc ilike '%<target_string>%';

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dmitriy Igrishin 2013-09-26 16:46:53 Re: Blowfish Encrypted String
Previous Message Craig Boyd 2013-09-26 16:14:47 Blowfish Encrypted String