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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Weeding out unused user created database objects, could I use pg_catalog?
Дата
Msg-id 17490.1265998418@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Weeding out unused user created database objects, could I use pg_catalog?  (Richard Huxton <dev@archonet.com>)
Ответы Re: Weeding out unused user created database objects, could I use pg_catalog?  (Richard Huxton <dev@archonet.com>)
Re: Weeding out unused user created database objects, could I use pg_catalog?  (Allan Kamau <kamauallan@gmail.com>)
Список pgsql-general
Richard Huxton <dev@archonet.com> writes:
> On 12/02/10 15:10, Allan Kamau wrote:
>> Therefore I am looking for a solution that contains
>> "last-accessed-time" data for these objects, especially for the
>> functions and maybe the triggers.

> Ah, sorry - misunderstood. There's not any timestamp kept. As you can
> imagine, it would be a cost you'd have to pay every time you accessed an
> object.

> 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.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Joao Ferreira gmail
Дата:
Сообщение: Re: db size and VACUUM ANALYZE
Следующее
От: Bill Moran
Дата:
Сообщение: Re: db size and VACUUM ANALYZE