Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: date dernière modif dans la base



Le Monday 21 April 2008 12:30:28 William Dode, vous avez écrit :
> Slt,
>
> Y aurait-il un moyen de connaitre la date de la dernière modification
> dans une base (sur n'importe quelle table) ?
>


SELECT 
( pg_stat_file
  (
    ( SELECT setting 
      FROM pg_settings 
      WHERE name='data_directory'
    )
    ||'/pg_xlog/'
    ||pg_xlogfile_name(pg_current_xlog_location())
  )
).modification;


Je suis pas certain mais il me semble qu'il faut obligatoirement être 
super-utilisateur et avoir une version >= 8.0



-- 
damien clochard
http://dalibo.org | http://dalibo.com



Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group