Skip to content

pg_webrtc

Early WebRTC runtime boundary for PostgreSQL with a preloaded background worker.

pg_webrtc · Early WebRTC runtime boundary for PostgreSQL with a preloaded background worker.

Overview

IDExtensionPackageVersionCategoryLicenseLanguage
102337pg_webrtcpg_webrtc0.1.0UTILRust

PostgreSQL · 18

Usage

Sources:

pg_webrtc 0.1.0 is an early PostgreSQL 18 preload extension that links pgrx 0.19.2 with webrtc-rs and establishes a background-worker process boundary. Its only SQL surface is build information:

CREATE EXTENSION pg_webrtc;
SELECT webrtc.version();
SELECT webrtc.engine();

The worker is registered only when PostgreSQL loads the library during server startup. To use it, add the library to shared_preload_libraries and restart PostgreSQL:

shared_preload_libraries = 'pg_webrtc'

Current Boundary

The worker currently owns a Tokio runtime and remains idle; it does not yet expose peer-connection, offer/answer, ICE-candidate, or data-channel SQL commands. The extension is intentionally superuser-only, non-relocatable, and may eventually open network sockets. Treat it as a runtime/process-boundary prototype, not a usable WebRTC API. The upstream repository declares no license, which must be resolved before redistribution.

Table reader