Re: Redundant database objects.

From: Joe Conway <mail(at)joeconway(dot)com>
To: Andrew Bartley <ambartley(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Redundant database objects.
Date: 2010-07-13 06:35:36
Message-ID: 4C3C0938.509@joeconway.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 07/12/2010 11:07 PM, Andrew Bartley wrote:
>
> I still need some way of finding redundant functions

A bit of a blunt instrument, but you could log all statements for a
while, and then grep through the logs using a list of all functions of
interest to see which ones never show up. Be wary of the performance hit
and rapidly growing log though. Another idea would be to modify a copy
of 8.3.x source code (I think that's what you said you were on in an
earlier post) to emit a NOTICE with a name whenever a function is called
if it meets some criteria.

Joe

--
Joe Conway
credativ LLC: http://www.credativ.us
Linux, PostgreSQL, and general Open Source
Training, Service, Consulting, & Support

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Thomas Kellerer 2010-07-13 06:40:31 Re: Testing 9.0beta3 and pg_upgrade
Previous Message Andras Fabian 2010-07-13 06:31:18 Re: PG_DUMP very slow because of STDOUT ??