Re: last UPDATE or INSERT time of a table? (not a row!)

Поиск
Список
Период
Сортировка
От Joseph Shraibman
Тема Re: last UPDATE or INSERT time of a table? (not a row!)
Дата
Msg-id 3A8C4DDE.4BA36880@selectacast.net
обсуждение исходный текст
Ответ на last UPDATE or INSERT time of a table?  (Louis-David Mitterrand <cunctator@apartia.ch>)
Ответы Re: last UPDATE or INSERT time of a table? (not a row!)
Список pgsql-general
Louis-David Mitterrand wrote:
>
> On Thu, Feb 15, 2001 at 03:09:16PM -0000, Richard Huxton wrote:
> > From: "Louis-David Mitterrand" <cunctator@apartia.ch>
> >
> > > Is there a way to check the last time a table was UPDATEd or INSERTEd?
> > > Is there a timestamp somewhere in the system tables?
> > >
> > > (If not that would be really useful to help in web page cacheing and
> > > expiration to learn if any change occured on the data)
> > >
> > > Thanks in advance,
> >
> > You can set up a trigger. See my previous post RFC: automatic
> > "lastchange"... for some more info, or search the archives.
>
> Yes, I have read that thread qnd implemented a similar trigger in the
> past.
>
> What I meant to do is detect a change at the _table_ level, not the row
> level. Is there such a field somewhere in the pg_tables?
>

You could check the date on the file.  But a vacuum might alter that.


--
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio.  http://www.targabot.com

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

Предыдущее
От: Fred Yankowski
Дата:
Сообщение: Re: Error by starting postmaster
Следующее
От: Christopher Sawtell
Дата:
Сообщение: Name list for testing / demo.