我想记录对表col
中列schema.table
的任何访问。特别是,我想记录时间,用户和命令。这可行吗?
立即使用案例是不赞成使用col
,而赞成使用新列。过渡不是自动的,查找所有实例也不是一件容易的事,因此拥有一些自动化支持会有所帮助。这与What's the best way to deprecate a column in a database schema?和What are the best practices around retiring obsolete database columns?有关。
您可以使用pgAudit记录对PostgreSQL日志文件中某一列的所有访问。