Home / Companies / AuthZed / Blog / Post Details
Content Deep Dive

Interact with SpiceDB Seamlessly from within PostgreSQL using the SpiceDB Foreign Data Wrapper

Blog post from AuthZed

Post Details
Company
Date Published
Author
Joey Schorr
Word Count
1,360
Company Posts That Month
4
Language
English
Hacker News Points
-
Post removed?
No
Summary

SpiceDB has introduced a Foreign Data Wrapper (FDW) for PostgreSQL, allowing real-time authorization context from SpiceDB to integrate into Postgres queries without data duplication, policy rewriting, or embedded authorization logic. Starting with version 1.49.0, this FDW enables PostgreSQL to query SpiceDB at runtime by exposing permissions and relationships as foreign tables supported by SpiceDB's APIs. This integration aims to provide a unified access point for both application and permission data, translating SQL operations into live SpiceDB API calls, leveraging its scalability and optimizations. While the FDW does not completely resolve the dual-write issue, as writes to relationships are executed in SpiceDB's own transaction, it reduces the impact by rolling back the surrounding PostgreSQL transaction if a write fails. Although still experimental, the FDW has been designed with real-world use cases in mind, and users are encouraged to try it out and provide feedback as it progresses in development.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 1 5,046 1,089 214 +11%
Vector Search 1 2,212 422 133 +33%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.