summaryrefslogtreecommitdiffstats
path: root/postgres.c
diff options
context:
space:
mode:
authorAsbjørn Sloth Tønnesen <ast@2e8.dk>2020-06-03 20:27:20 +0000
committerAsbjørn Sloth Tønnesen <ast@2e8.dk>2020-06-03 20:27:20 +0000
commitfdfecee2044cd1ea80012cdf9f0b4cf96089deb0 (patch)
tree78c9b899df18041710e09d16cb78e7518e653846 /postgres.c
parentb2a3f5508a52b87b9e556b30c26ab19fc0e4d591 (diff)
downloadlem-postgres-fdfecee2044cd1ea80012cdf9f0b4cf96089deb0.tar.gz
lem-postgres-fdfecee2044cd1ea80012cdf9f0b4cf96089deb0.tar.xz
lem-postgres-fdfecee2044cd1ea80012cdf9f0b4cf96089deb0.zip
Add support for asynchronous notifications
If a notification handler is set using db:set_notifier(cb) then the event loop will be kept alive until db:close() is called or the event loop. Prior to this a database connection would never keep the event loop running. https://www.postgresql.org/docs/current/libpq-notify.html Signed-off-by: Asbjørn Sloth Tønnesen <ast@2e8.dk>
Diffstat (limited to 'postgres.c')
0 files changed, 0 insertions, 0 deletions