gpt4 book ai didi

postgresql - 将数据库记录写入 postgres 时运行 shell 脚本

转载 作者:行者123 更新时间:2023-11-29 11:54:38 24 4
gpt4 key购买 nike

postgres 中是否有某种机制可以在写入数据库记录时触发 shell 脚本?我可以编写一个脚本来仅监控数据库和表,但在此之前我想确保没有“更好”的方法。

最佳答案

使用 PL/sh 编写触发器函数.这就是它的用途。

关于postgresql - 将数据库记录写入 postgres 时运行 shell 脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7902348/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com