Re: Redundant database objects.

From: Pavel Stehule <pavel(dot)stehule(at)gmail(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 07:05:43
Message-ID: AANLkTimxgESkJAzYPCInJEkhtY3X6z1TaGFTLPblqc3W@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello

2010/7/13 Andrew Bartley <ambartley(at)gmail(dot)com>:
> Thanks Alexander,
> Wish i had thought of that.
> I still need some way of finding redundant functions
> Thanks again
> Andrew
>

I used a function source code injection for this task

see http://www.postgres.cz/index.php/Injekt%C3%A1%C5%BE_zdrojov%C3%A9ho_k%C3%B3du_PL/pgSQL_funkc%C3%AD_za_%C3%BA%C4%8Delem_z%C3%ADsk%C3%A1n%C3%AD_seznamu_pou%C5%BE%C3%ADvan%C3%BDch_funkc%C3%AD

article is czech, but comments in code are in english (I used it in 8.3)

you can use a PL profiler too

http://www.depesz.com/index.php/2008/05/15/waiting-for-84-function-stats/

Regards

Pavel Stehule

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2010-07-13 07:44:08 Re: "attempted to lock invisible tuple" error while update
Previous Message Thomas Kellerer 2010-07-13 06:40:31 Re: Testing 9.0beta3 and pg_upgrade