Quick revision
The short answer
These old design choices turn into platform standards: process per connection makes server-side connection pooling mandatory, double buffering makes memory sizing a shared platform concern, and MVCC with in-place row versions makes vacuum expertise a permanent operational cost. Even so, we would bet on PostgreSQL as the default for the next ten years, because of its extensions, open licence, managed offerings on every cloud, strong SQL and JSONB, and yearly releases, while managing its known risks with clear guidelines and a documented second option.
What to remember
In this answer, we saw how PostgreSQL's design shapes an organisation. Process per connection makes a server-side pooler such as PgBouncer a platform standard, because application pools alone do not scale with many services. Double buffering makes memory sizing a platform concern encoded in templates. MVCC makes vacuum knowledge a permanent operational cost. We would still bet on PostgreSQL as the default for ten years for its extensions, licence, managed offerings, SQL and JSONB, and steady releases, while managing write amplification, horizontal scaling and skills with guidelines and a documented second option.
Your turn
Answer it aloud as you would in the interview, or type your answer below. Then show one part at a time and compare.
These old design choices turn into platform standards: process per connection makes server-side connection pooling mandatory, double buffering makes memory sizing a shared platform concern, and MVCC with in-place row versions makes vacuum expertise a permanent operational cost. Even so, we would bet on PostgreSQL as the default for the next ten years, because of its extensions, open licence, managed offerings on every cloud, strong SQL and JSONB, and yearly releases, while managing its known risks with clear guidelines and a documented second option.
Why this question is asked
Choosing a default database is one of the longest-lived decisions an engineering organisation makes. Once a hundred services depend on it, the database's architecture quietly shapes team structure, platform work and hiring for a decade. Interviewers ask this leadership question to see whether we can connect internals to organisational consequences and make a reasoned bet rather than follow fashion. In this answer, we will look at what each design choice forces us to standardise, weigh the strengths and risks of the bet, and describe how we would keep an exit open.
1A Quick Recap of the Three Design Choices
PostgreSQL runs one operating system process per client connection. The postmaster forks a backend for every new connection, and that process lives until the client disconnects. It is simple and robust, because a crash in one backend is contained, but each process costs memory and scheduling overhead.
PostgreSQL also caches data pages in its own shared_buffers, while the operating system's page cache caches the same files again. This is called double buffering: a hot page may sit in memory twice. Finally, PostgreSQL implements MVCC by writing a new row version for every update and leaving the old version in the table until vacuum removes it. Each choice has a good reason, and each creates work that somebody in the organisation must own.
2Process per Connection Makes Pooling a Platform Standard
A Java service with HikariCP holds, say, 20 connections per instance. With 50 services running 10 instances each, that is 10,000 connections, which means 10,000 backend processes. PostgreSQL performs badly long before that: memory per backend adds up, and snapshot creation and lock management get slower as the number of backends grows. Application pools alone cannot solve this, because each pool only sees its own service.
So the organisation standardises a server-side pooler: PgBouncer in transaction mode, or the managed proxy of the cloud provider. Thousands of client connections are multiplexed onto a few hundred backends. Making it a standard matters because transaction pooling has rules that every team must know, such as care with session state, prepared statements depending on the pooler version, and advisory locks.
- Service instancessmall HikariCP pool each, for example 10
- Server-side poolerPgBouncer in transaction mode or a managed proxy
- PostgreSQL backendsa few hundred processes, one per server connection
- Shared buffers and OS page cachememory sized by the platform team
4 layers, from the top down. Step through them one at a time.
3Double Buffering Makes Memory a Shared Concern
Because pages can live in both shared_buffers and the page cache, memory sizing is a balance: typically shared_buffers around 25 percent of RAM, the rest left to the operating system and to per-backend work_mem. Getting it wrong shows up as either constant disk reads or out-of-memory kills, and the right values depend on the instance size and workload, not on any one service.
So memory sizing belongs to the DBA and platform team, encoded in templates per instance class. Individual service teams should not tune shared_buffers or raise work_mem globally, because their change affects every other service on the cluster.
4MVCC Makes Vacuum Knowledge a Recurring Cost
Every update leaves a dead row version behind, so vacuum is part of normal operation, not an emergency tool. The organisation needs people who understand autovacuum thresholds, bloat, long transactions holding back cleanup, and transaction ID wraparound. That knowledge must be spread through runbooks, alerts and schema reviews, because a team that designs a hot counter row or a queue table without knowing this will create problems the platform team pays for later. This is the real price of PostgreSQL, and it is worth naming openly in the decision.
5Weighing the Ten-Year Bet
The strengths are unusual in combination. The extension ecosystem (PostGIS, pgvector, pg_stat_statements, Citus and many more) lets one engine cover geospatial, vector search and more. The PostgreSQL licence is permissive and no single vendor controls the project, so there is no licence risk. Every major cloud offers managed PostgreSQL, and several companies build compatible distributed databases. The SQL and JSONB support are strong, and the community ships a major release every year.
The risks are real but manageable. At very high update rates, MVCC causes write amplification, because every update writes a new tuple and possibly index entries. A single primary limits write scaling, so very large tenants eventually need sharding, with Citus or in the application. And skilled PostgreSQL operators are in demand. We would bet on PostgreSQL as the default, while writing down where it is not the default.
| Factor | Assessment | How we manage it |
|---|---|---|
| Extensions and features | strong | approved extension list |
| Licence and vendor risk | very low | no action needed |
| Managed offerings | every major cloud | keep portability between providers |
| Write amplification | risk at very high update rates | schema reviews, fillfactor, HOT updates |
| Horizontal write scaling | limited on one primary | Citus or app sharding guideline |
| Skills | in demand | training, runbooks, platform team |
6Keeping an Exit and a Second Option
A good default comes with a documented exception path. We would write a short guideline: PostgreSQL unless the workload needs, for example, multi-region writes with strong consistency, or write volume beyond what one primary can take after partitioning. For those, a named second option, such as a distributed SQL database, has an owner and a reference setup. We also keep the exit realistic by avoiding deep dependence on one provider's proprietary features and reviewing the decision every two years against what we have learned.
7Follow-up questions
What would make you choose a distributed SQL database instead?
A workload that needs writes in several regions with strong consistency, or a single dataset whose write volume and size exceed one primary even after partitioning and tuning, with no natural shard key for application-level sharding. Distributed SQL databases such as CockroachDB, YugabyteDB or Spanner handle these by design, at the cost of higher latency per transaction, more complex operations or vendor dependence. I would require a benchmark on the real workload before accepting the exception.
Is double buffering a real problem in practice?
It wastes some memory, but the page cache also helps PostgreSQL with read-ahead and with files outside shared_buffers. With sensible sizing it rarely matters; it becomes a problem when teams oversize shared_buffers or ignore it entirely. That is why sizing belongs in platform templates.
Would future PostgreSQL versions change these standards?
Some details may change, for example asynchronous I/O arrived in PostgreSQL 18 and work on connection scalability continues. The organisational lessons, pooling, memory ownership and vacuum knowledge, will likely remain for years, so we standardise them now and revisit when releases change the facts.
8Conclusion
In this answer, we saw how PostgreSQL's design shapes an organisation. Process per connection makes a server-side pooler such as PgBouncer a platform standard, because application pools alone do not scale with many services. Double buffering makes memory sizing a platform concern encoded in templates. MVCC makes vacuum knowledge a permanent operational cost. We would still bet on PostgreSQL as the default for ten years for its extensions, licence, managed offerings, SQL and JSONB, and steady releases, while managing write amplification, horizontal scaling and skills with guidelines and a documented second option.
Open with
I see these design choices as things the organisation must standardise around. Process per connection means every connection is a backend process, so with hundreds of service instances we cannot rely on application pools; a server-side pooler such as PgBouncer in transaction mode, or the cloud provider's proxy, becomes a platform standard, with documented rules for session state.
Then, if they want more
Double buffering, shared_buffers on top of the page cache, means memory sizing is a shared concern for the platform team, encoded in templates per instance class, not something each service tunes. MVCC with in-place row versions means vacuum is a permanent operational cost, so we need vacuum knowledge in runbooks, alerts and schema reviews.
Would I bet on PostgreSQL as the default for ten years? Yes. The extension ecosystem, the permissive licence with no single vendor, managed offerings on every cloud, strong SQL and JSONB, and a release every year make it the safest default I know.
I would manage the risks openly: write amplification at very high update rates, limited horizontal write scaling where Citus or application sharding come in, and skills availability. And I would publish a clear exception guideline with a named second option, such as a distributed SQL database, reviewed every couple of years.
About this answer
- Last updated
- 12 November 2026
- Versions it names
- PostgreSQL 18
- Checked
- Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
- Where the question comes from
- Written by Scrivio for practice. It is not taken from an interview.
- Official documentation
- PostgreSQL documentation
Report an issue with this answer
Copy the line below and send it to the author with what you found. It carries the address of this page.
Issue with "PostgreSQL uses a process per connection and a shared buffer pool on top of the...": https://scrivio-interview-library.netlify.app/databases/postgresql/916bcc0d73/