Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要让我的 PostgreSQL 数据库执行一个由触发器调用的 java 类。
我读到您可以在您的 PostgreSQL 数据库上安装 java,但要做到这一点,我可能需要超级用户权限,并且不知道如何执行此操作,因为 Heroku 上的 PostgreSQL 不提供此选项。
有没有办法做到这一点?或者也许是一种解决方法?
在 Postgres 中有一种使用 Notify 的方法,但是您必须定期轮询数据库并获取通知。
通知 Postgres 文档
通知 JDBC 文档