PostgreSQL
One database for structured data, flexible documents and AI embeddings – cleanly modeled and fast.
PostgreSQL is our standard database for web applications, SaaS platforms and AI applications – in client projects as well as in our own products. We model data, optimize queries and set up backups, replication and access rules.
For type-safe access from TypeScript, we use Prisma, Drizzle or TypeORM depending on the project. For AI applications, we store embeddings with pgvector right next to the other data.
We have already migrated existing databases from Microsoft SQL Server to PostgreSQL – with tests on real data and a plan for the switchover.
Official website
Your contact Michael Jauk Contact for backend & architecture What is PostgreSQL – and when is it worth it?
PostgreSQL is an open-source relational database with strong SQL compliance, transactional safety and many extensions – such as JSONB for flexible data, full-text search and pgvector for vector search. All major cloud providers offer it as a managed service.
PostgreSQL is worth it for almost every business application with structured data, relationships and transactions. Other systems fit better for pure key-value access with extreme throughput, or for very large analytical data volumes that column-oriented analytics databases are built for.
pgvector or a separate vector database?
| pgvector in PostgreSQL | Separate vector database | |
|---|---|---|
| Operation | one database for data and embeddings | an additional system |
| Consistency | data and embeddings in the same transaction | syncing between two systems required |
| Access rights | the same rules as for all data, e.g. row-level security | a separate permission model |
| Search | vector search with HNSW index, combinable with SQL filters | specialized in vector search |
| Suited for | most RAG applications in companies | very large vector volumes, special search features |
Related topics
Capabilities
What We Build with PostgreSQL
Use Cases
Typical Use Cases
SaaS Platforms with Many Tenants
Data storage where row-level security in the database ensures that each tenant sees only their own data.
AI Applications with Vector Search
Embeddings with pgvector right next to business data – for RAG and semantic search without an additional vector database.
Migration from SQL Server
Moving existing databases from Microsoft SQL Server to PostgreSQL, including data types, queries and stored procedures.
FAQ
PostgreSQL FAQ
Why does dectria use PostgreSQL?
Can PostgreSQL be used for AI projects?
How do you separate the data of different tenants in PostgreSQL?
Can dectria migrate a database from SQL Server to PostgreSQL?
Which ORM does dectria recommend?
Every project starts with a conversation.