Skip to content
github-actions[bot] edited this page Mar 27, 2026 · 41 revisions

plex-postgresql Wiki

Run Plex Media Server with PostgreSQL instead of SQLite. Zero Plex modifications required.

Latest release: v1.2.0

100% Rust shim runtime. All C runtime code has been eliminated. The shim is now pure Rust, compiled to a single .dylib/.so.

  • 712 tests passing across unit, integration, and compatibility suites
  • Full Rust runtime: all interpose, column access, step execution, and connection management in Rust
  • Module architecture: monolithic files split into focused submodules for maintainability
  • Deadlock fixes: recursive connection mutex, reduced lock hold times, lock-free logging fallback
  • Stack safety: heap-allocated thread-local buffers for Plex's 544K worker thread stacks
  • Duplicate stmt fix: SQLSTATE 42P05 detection, DEALLOCATE ALL at connection init (v0.9.40)
  • Stale stmt recovery: prepared statement cache auto-invalidated after PG restart via SQLSTATE 26000 (v0.9.39)
  • Pool auto-grow: pool automatically grows when threads exceed configured size (v0.9.36)
  • Single-row streaming mode for all READ queries (PQsetSingleRowMode) (v0.9.28)

Pages

Clone this wiki locally