Re: Last modification time of a database?
От
Daniel Verite
Тема
Re: Last modification time of a database?
Дата
Msg-id
3b704b96-31ba-44f5-9eb9-b061457f0661@mm
Ответ на
Re: Last modification time of a database? (Erik Jones)
Список
Дерево обсуждения
Last modification time of a database? Erik Jones <ejones@engineyard.com>
Re: Last modification time of a database? Craig Ringer <craig@postnewspapers.com.au>
Re: Last modification time of a database? Erik Jones <ejones@engineyard.com>
Re: Last modification time of a database? Tom Lane <tgl@sss.pgh.pa.us>
Re: Last modification time of a database? "Daniel Verite" <daniel@manitou-mail.org>
Erik Jones wrote: > These are all client databases at the web hosting company I work at. > I can't go putting triggers on all of their tables. I think I'll just > start taking snapshots of pertinent data from pg_stat_activity and > after I've been collecting data for a while run a report of dbs that > haven't seen connections in X long since what I'm really after is > inactive databases. Did you think about just setting log_connections to ON and grep'ing the server logs? Otherwise it looks like a use-case for ON CONNECT triggers, unfortunately we don't have them yet. The TODO list links that message: http://archives.postgresql.org/pgsql-hackers/2008-03/msg00451.php Best regards, -- Daniel PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org
В списке pgsql-general по дате отправления