How do I find the last time that a PostgreSQL database has been updated?

前端 未结 5 1992
我寻月下人不归
我寻月下人不归 2021-02-01 05:52

I am working with a postgreSQL database that gets updated in batches. I need to know when the last time that the database (or a table in the database)has been updated or modifie

5条回答
  •  故里飘歌
    2021-02-01 06:42

    It looks like you can use pg_stat_database to get a transaction count and check if this changes from one backup run to the next - see this dba.se answer and comments for more details

提交回复
热议问题