Skip to content

Commit

Permalink
notify patch is emscripten only
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p committed Jul 9, 2024
1 parent c1c87e6 commit b5713ae
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions patches/postgresql-emscripten/src-backend-commands-async.c.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--- postgresql-16.3/src/backend/commands/async.c 2024-05-06 22:21:25.000000000 +0200
+++ postgresql-16.3-wasm/src/backend/commands/async.c 2024-07-09 16:02:21.973916750 +0200
@@ -1700,8 +1700,12 @@
* NotifyQueueLock; which is unlikely but certainly possible. So we
* just log a low-level debug message if it happens.
*/
+#if defined(__EMSCRIPTEN__)
+ HandleNotifyInterrupt();
+#else
if (SendProcSignal(pid, PROCSIG_NOTIFY_INTERRUPT, ids[i]) < 0)
elog(DEBUG3, "could not signal backend with PID %d: %m", pid);
+#endif
}

pfree(pids);

0 comments on commit b5713ae

Please sign in to comment.