Re: Searching through trigger functions

From: Alan Hodgson <ahodgson(at)simkin(dot)ca>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Searching through trigger functions
Date: 2011-09-26 17:53:00
Message-ID: 201109261053.00418.ahodgson@simkin.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On September 26, 2011 10:47:20 AM Bob Pawley wrote:
> Hi
>
> I have an error somewhere in one of the trigger functions in my database.
> The error message only told me it was a ‘Select * From (table name).
>
> Is there a global method of finding where this expression resides other
> than searching each script individually.
>

pg_dump -s > file; vi file; /s search_string

Alternately, I find it good practice to maintain function definitions outside of
the database, under version control. You can then grep those files as needed.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rich Shepard 2011-09-26 18:38:16 Quick-and-Dirty Data Entry with LibreOffice3?
Previous Message Merlin Moncure 2011-09-26 17:50:45 Re: Searching through trigger functions