简体   繁体   English

检测PostgreSQL中的数据更改

[英]Detect data changes in postgresql

Is there any way to detect data changes on postgresql wihtout touching the database structure (creating :procedures ,triggers ...). 有没有什么方法可以检测到数据库结构上的PostgreSQL数据变化(创建:procedures,triggers ...)。

We thought about a listener that keep listening to log file and parse it in order to know if there are a data change (insert / delete / modification). 我们想到了一个侦听器,该侦听器将继续侦听日志文件并对其进行解析,以了解是否有数据更改(插入/删除/修改)。

I am not sure if the log parsing is efficient enough for such a deal. 我不确定日志解析是否足够有效。

You should tell your target and why you can not change the structure for a better help. 您应该告诉您的目标以及为什么不能更改结构以获得更好的帮助。

But maybe that could help https://dzone.com/articles/audit-log-database-changes-in-postgresql 但这也许可以帮助https://dzone.com/articles/audit-log-database-changes-in-postgresql

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM