PostgreSQL databases
We design PostgreSQL databases so the app only sees what it needs. Every service has its own database, its own roles and limits, and backups live in a different data centre.
What you come with
Everything in one bag: the app has full rights to every table, one bug in the code and other people's data is visible. Add queries that choke the server once traffic grows.
What you get
A database where the app role has no access to tables - only to prepared views and functions. Connection and query time limits, a backup before every change and, if you need it, spatial data in PostGIS.
How we do it
-
01
One database per function
Accounts, content, mail, data - each on its own. A failure in one part does not touch the rest.
-
02
Roles without table access
The site reads views and writes through functions that enforce the rules themselves. The table owner never logs in.
-
03
Rules inside the database
RLS: a user only sees their own rows, even if the site code has a bug.
-
04
Performance
Indexes, PgBouncer in front of the database, connection and query time limits on every role.
-
05
Changes without fear
A dump before every change, backups in another data centre, migrations inside transactions.
Technologies
PostgreSQL PgBouncer PostGIS pgvector RLS pgAdmin Docker
Got an idea or a problem to solve?
Describe it in a few sentences - we will reply with what can be done and how.
Let's talk