Re: Monitoring object usage?

From: Jayadevan M <Jayadevan(dot)Maymala(at)ibsplc(dot)com>
To: "Colin 't Hart" <colinthart(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-general-owner(at)postgresql(dot)org
Subject: Re: Monitoring object usage?
Date: 2010-09-15 12:28:35
Message-ID: OF4850800B.B4114F2B-ON6525779F.00445A47-6525779F.00449BAC@ibsplc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

> From: "Colin 't Hart" <colinthart(at)gmail(dot)com>
> To: pgsql-general(at)postgresql(dot)org
> Date: 15/09/2010 17:37
> Subject: [GENERAL] Monitoring object usage?
> Sent by: pgsql-general-owner(at)postgresql(dot)org
>
> Hi,
>
> I'm trying to get a grip on a new body of code and a Postgres
> database that I'm working with. In particular I've been tasked with
> cleaning up the database.
>
> Is there a way in Postgres to enable monitoring on tables and
> columns to determine what's not actively being used?
>
> This would then form input for a more thorough check into the code
> base to see what's really not being used.
>

Would the log_statement mentioned here help?
http://www.postgresql.org/docs/current/static/runtime-config-logging.html
I guess it will result in huge log files if it is a 'busy' database.
Probably this has a performance penalty too.

Regards,
Jayadevan

DISCLAIMER:

"The information in this e-mail and any attachment is intended only for
the person to whom it is addressed and may contain confidential and/or
privileged material. If you have received this e-mail in error, kindly
contact the sender and destroy all copies of the original communication.
IBS makes no warranty, express or implied, nor guarantees the accuracy,
adequacy or completeness of the information contained in this email or any
attachment and is not liable for any errors, defects, omissions, viruses
or for resultant loss or damage, if any, direct or indirect."

In response to

Browse pgsql-general by date

  From Date Subject
Next Message tv 2010-09-15 12:37:39 Re: Monitoring object usage?
Previous Message Colin 't Hart 2010-09-15 11:56:48 Monitoring object usage?