SGj
SGj

Reputation: 21

Can I make a call to a java class/method from a Trigger in a PostgreSQL (in Heroku)?

I need to make my PostgreSQL database execute a java class called by a trigger.

I read that you can install java on your PostgreSQL db, but to do this I might need superuser privileges, and don't know how to do this since PostgreSQL on Heroku doesn't offer this option.

Is there a way to do this? Or perhaps a work-around?

Upvotes: 0

Views: 543

Answers (1)

Khanh Nguyen
Khanh Nguyen

Reputation: 91

There's a way to it with Notify in Postgres, but then you will have to poll the database periodically and get the notification.

Upvotes: 1

Related Questions