如何在 postgresql 9.4 中检测数据库是备份模式还是非备份模式



目前我们使用pg_basebackup安排在早上的备份作业。是否可以在备份期间检测数据库模式。

根据手册,您可以使用pg_is_in_backup()

pg_is_in_backup()   bool    True if an on-line exclusive backup is still in progress.

最新更新