在Postgres中记录对列的访问权限

问题描述 投票:0回答:1

我想记录对表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?有关。

postgresql logging automation deprecation-warning
1个回答
0
投票

您可以使用pgAudit记录对PostgreSQL日志文件中某一列的所有访问。

© www.soinside.com 2019 - 2024. All rights reserved.