Skip to content

docs: add macOS 26.x Tahoe PGLite WASM workaround + native Postgres setup guide#1671

Open
roysaurav wants to merge 1 commit into
garrytan:masterfrom
roysaurav:docs/macos-tahoe-pglite-workaround
Open

docs: add macOS 26.x Tahoe PGLite WASM workaround + native Postgres setup guide#1671
roysaurav wants to merge 1 commit into
garrytan:masterfrom
roysaurav:docs/macos-tahoe-pglite-workaround

Conversation

@roysaurav

Copy link
Copy Markdown

PGLite's embedded WASM engine crashes on macOS 26.x (Tahoe) on Apple Silicon due to a WASM runtime bug. This PR adds documentation for the workaround: using native Homebrew PostgreSQL + pgvector instead of PGLite.

Changes

  • docs/INSTALL.md: Added a new "Troubleshooting" section with step-by-step instructions for setting up native Homebrew PostgreSQL 17 + pgvector as a workaround
  • README.md: Added a callout in the existing Troubleshooting section pointing users to the detailed setup guide

Tested on

  • macOS 26.5 (arm64, Apple Silicon)
  • Bun 1.3.14
  • gbrain 0.41.29.0
  • PostgreSQL 17.10 (Homebrew)
  • pgvector 0.8.0 (compiled from source)

All 102 schema migrations pass. gbrain doctor green across the board. Full brain functionality verified: put, search, link, files upload-raw.

Closes #1670

…etup guide

PGLite's embedded WASM engine crashes on macOS 26.x (Tahoe) on Apple
Silicon during engine initialization. This adds:

- A Troubleshooting section in docs/INSTALL.md with step-by-step
  instructions for using native Homebrew PostgreSQL 17 + pgvector
  as a workaround
- A callout in README.md's Troubleshooting section pointing users
  to the detailed setup guide

Tested on macOS 26.5 (arm64), Bun 1.3.14, gbrain 0.41.29.0,
PostgreSQL 17.10 (Homebrew), pgvector 0.8.0. All 102 schema
migrations pass. gbrain doctor green.
@roysaurav

Copy link
Copy Markdown
Author

This PR documents the native PostgreSQL + pgvector workaround for the macOS 26.x PGLite WASM crash tracked in #223 and #1670.

It links the workaround to both issues so that users running into this on macOS 26.x / Tahoe have a clear path to running gbrain locally while upstream fixes (like the PGLite WAL recovery in electric-sql/pglite#994 or Bun updates) are finalized.

@roysaurav

Copy link
Copy Markdown
Author

@claude can you review it ?

@roysaurav

Copy link
Copy Markdown
Author

@garrytan can you please review it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PGLite crashes on macOS 26.x (Tahoe) due to WASM runtime bug

1 participant