From: | Allan Kamau <kamauallan(at)gmail(dot)com> |
---|---|
To: | Andy Yoder <ayoder(at)airfacts(dot)com> |
Cc: | "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: Tool for determining field usage of database tables |
Date: | 2010-02-25 17:41:22 |
Message-ID: | ab1ea6541002250941t74d68038s9b6724e52a3ec513@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Writing an audit trigger for the operations you'd like to monitor
(then assign it to all your application's tables) to perform the
auditing may be one easy way of doing so, this trigger would log the
operations to some other table.
Allan.
On Thu, Feb 25, 2010 at 7:36 PM, Andy Yoder <ayoder(at)airfacts(dot)com> wrote:
> Does anyone know of a tool (or a way to use the database catalogs) that can
> analyze function code/queries accessing the database to pull out a list of
> the fields used in a set of tables. Basically we are importing a lot of
> data from another source, and we are trying to determine what percentage of
> the data we are actually using at this point . We have hundreds of stored
> procedures, and combing through the code would not be practical.
>
>
>
> Thanks.
>
>
>
> --Andy
>
>
>
>
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2010-02-25 18:57:07 | Re: Boolean partition constraint behaving strangely |
Previous Message | Jeff | 2010-02-25 17:03:47 | Re: Curious plperl behavior |