PostgreSQL - the database powering modern applications and AI workloads
Database architecture, schema design, query optimisation, and vector search with PostgreSQL and pgvector for applications that need reliability, performance, and AI readiness.
How we use it
PostgreSQL is our default database for every project requiring a relational data model. We use it with Prisma ORM for TypeScript projects and SQLAlchemy for Python. For AI workloads, we use pgvector for in-database vector search - eliminating the need for a separate vector database.
Best fit for
PostgreSQL has achieved a historic milestone: it is now the most-used database among professional developers, with 55.6% of respondents in the 2025 Stack Overflow Developer Survey - up from 48.7% in 2024, the largest single-year expansion in its history, opening a 15-percentage-point gap over MySQL. The AI wave has accelerated this growth: pgvector, PostgreSQL's vector similarity search extension, pre-installed on virtually every major hosted provider as of mid-2025, means teams building RAG systems and LLM-powered features no longer need a separate vector database like Pinecone - they can run embeddings queries alongside transactional queries in the same PostgreSQL instance. PostgreSQL 18, released September 2025, added native UUID v7, asynchronous I/O for high-load workloads, and virtual generated columns.
What's included
Capabilities
API architecture & endpoint design
Database schema & integration
Authentication, RBAC & security hardening
Third-party integrations & webhooks
Performance optimisation & caching strategy
Fit analysis
Is this right for you?
Honest breakdown of where PostgreSQL shines — and where it doesn't. Pick the right tool.
When to choose this
Right fit scenarios
You are building a SaaS product with relational data - users, organisations, billing, permissions - and need ACID transactions, foreign key enforcement, and a schema you can evolve safely
You are building AI-powered features that require vector similarity search - semantic search, recommendations, RAG pipelines - and want to run embeddings queries in the same database as your transactional data
Your application needs complex querying - multi-table joins, aggregations, window functions, full-text search - that a document database like MongoDB handles awkwardly
You need geospatial capabilities - distance queries, polygon intersections, location-based filtering - via PostGIS, which is the most mature geospatial extension available in any database
You want a self-hosted, open-source database with no per-row or per-request pricing, so your infrastructure costs scale predictably as your data volume grows
When to choose this
Right fit scenarios
You are building a SaaS product with relational data - users, organisations, billing, permissions - and need ACID transactions, foreign key enforcement, and a schema you can evolve safely
You are building AI-powered features that require vector similarity search - semantic search, recommendations, RAG pipelines - and want to run embeddings queries in the same database as your transactional data
Your application needs complex querying - multi-table joins, aggregations, window functions, full-text search - that a document database like MongoDB handles awkwardly
You need geospatial capabilities - distance queries, polygon intersections, location-based filtering - via PostGIS, which is the most mature geospatial extension available in any database
You want a self-hosted, open-source database with no per-row or per-request pricing, so your infrastructure costs scale predictably as your data volume grows
Honest limitations
Not the best fit if…
Pure document storage workloads where the data is deeply nested, schema-less, and frequently changes shape - MongoDB or a document store is better suited for genuinely unstructured data
Time-series data at massive scale - dedicated time-series databases like TimescaleDB (which is a PostgreSQL extension) or InfluxDB are more efficient for very high write rates of time-stamped metrics
Globally distributed applications requiring multi-region writes with sub-10ms latency in all regions - CockroachDB or PlanetScale handle distributed SQL more natively
Teams that need a fully managed, zero-schema database with no migrations - Firebase or DynamoDB might fit teams where schema rigour creates more friction than value
