diff --git a/src/backend/commands/async.c b/src/backend/commands/async.c index 4b16fb56825..1d3e2602220 100644 --- a/src/backend/commands/async.c +++ b/src/backend/commands/async.c @@ -144,6 +144,9 @@ #include "utils/snapmgr.h" #include "utils/timestamp.h" +#ifdef EMSCRIPTEN +#include +#endif /* * Maximum size of a NOTIFY payload, including terminating NULL. This @@ -1676,6 +1679,12 @@ SignalBackends(void) BackendId *ids; int count; + #ifdef EMSCRIPTEN + // With PGlite we call HandleNotifyInterrupt() directly + HandleNotifyInterrupt(); + return; + #endif + /* * Identify backends that we need to signal. We don't want to send * signals while holding the NotifyQueueLock, so this loop just builds a