目前我们使用pg_basebackup安排在早上的备份作业。是否可以在备份期间检测数据库模式。
根据手册,您可以使用pg_is_in_backup()
pg_is_in_backup() bool True if an on-line exclusive backup is still in progress.