Re: Weeding out unused user created database objects, could I use pg_catalog?

From: Richard Huxton <dev(at)archonet(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Allan Kamau <kamauallan(at)gmail(dot)com>, Postgres General Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Weeding out unused user created database objects, could I use pg_catalog?
Date: 2010-02-12 19:16:16
Message-ID: 4B75A900.2070601@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 12/02/10 18:13, Tom Lane wrote:
> Richard Huxton<dev(at)archonet(dot)com> writes:
>
>> The best you can do is to turn on statement logging, parse the logs to
>> see what objects are used and then keep those and their dependencies.
>
> Or: remove some objects, run your test case, see if it succeeds.
> Repeat as needed.

If you've lost track of which database objects are in use, I'm not sure
your test suite is such a reliable indicator.

--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Marcin Krol 2010-02-12 19:20:19 Re: db size and VACUUM ANALYZE
Previous Message Bill Moran 2010-02-12 18:40:30 Re: db size and VACUUM ANALYZE