【问题标题】:Is there a way to determine creation time of a PostgreSQL database? [duplicate]有没有办法确定 PostgreSQL 数据库的创建时间? [复制]
【发布时间】:2019-09-21 20:54:13
【问题描述】:

我有一个 PostgreSQL 服务器,上面有几个数据库。

是否可以确定数据库服务器上的每个数据库的创建时间?

【问题讨论】:

    标签: postgresql


    【解决方案1】:
    SELECT (pg_stat_file('base/'||oid ||'/PG_VERSION')).modification, datname FROM pg_database;
    

    你可以找到答案here

    【讨论】:

    • 我会试试看它是什么样子的。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-03-25
    • 1970-01-01
    • 2015-03-30
    相关资源
    最近更新 更多