diff --git a/src/backend/access/common/printtup.c b/src/backend/access/common/printtup.c index 8cb5e3a880..dab2f545ea 100644 --- a/src/backend/access/common/printtup.c +++ b/src/backend/access/common/printtup.c @@ -567,5 +567,7 @@ debugtup_json_shutdown(DestReceiver *self) { appendStringInfoChar(&json_result, ']'); appendStringInfoChar(&json_result, '\0'); +#ifdef EMSCRIPTEN dispatch_result(json_result.data); +#endif } diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 913fb37cd7..23c26cf1d1 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -342,6 +342,7 @@ interactive_getc(void) return c; } +#ifdef EMSCRIPTEN /* ---------------- * EmscriptenBackend() * @@ -380,6 +381,7 @@ EmscriptenBackend(StringInfo inBuf) return 'Q'; } +#endif /* ---------------- * SocketBackend() Is called for frontend-backend connections @@ -524,8 +526,10 @@ ReadCommand(StringInfo inBuf) if (whereToSendOutput == DestRemote) result = SocketBackend(inBuf); +#ifdef EMSCRIPTEN else if (whereToSendOutput == DestDebugJson) result = EmscriptenBackend(inBuf); +#endif else result = InteractiveBackend(inBuf); return result;