S
S
Sergey2017-08-25 10:46:33
go
Sergey, 2017-08-25 10:46:33

How to listen to events in Postgresql database in Golang?

Good afternoon.
Can you suggest how to implement the task using the Go language so that you can listen to the database for events.
Let me explain an example.
There is a table like .
ba710c818f124f959d8c1cc1bfe08156.PNG
Task: do not hammer the database to see if there is a record with the "called" status, but is it possible to listen to the event, that is, Go will listen to the database for the appearance of the record and will not hammer the database
so can it be implemented?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
kmg4e, 2017-08-25
@Kle6800

Call an external program from a PostgreSQL trigger
https://stackoverflow.com/questions/21634848/calli...
This does not depend on the programming language, this is a feature of PostgreSQL

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question