Skip to main content
RunBook Academy

PostgreSQLXVIII · Platforms, Corruption and Production ArchitecturePlatforms

Managed versus self-managed: what stays your responsibility

Intermediate⏱ ~30 min

What you'll learn

  • Separate what a managed service takes on from what it cannot
  • Identify the capabilities you lose by not holding the host
  • Ask the questions that distinguish providers
  • Apply this course to a managed cluster

Prerequisites

Verified against PostgreSQL 18.x · PostgreSQL (comparison targets) 17.11, 16.15 · PostgreSQL (support calendar) 18, 17, 16, 15, 14 supported · pgBackRest 2.59.1 · PgBouncer 1.25.2 · Patroni 4.1.5 · Ubuntu (host baseline) 26.04 LTS · 2026-08-27

Not yet marked complete on this device.

The question is not whether a managed service is better. It is which responsibilities move and which do not, because the ones that do not are most of this course.

What moves

ResponsibilityCovered inManaged service
Installation, packagingPart IITheirs
Minor version patchingLesson XVII-05Theirs, on their schedule
Hardware and storage failurePart XVIIITheirs
Replication mechanicsPart XIVTheirs
Failover automationPart XVTheirs
Taking backupsPart XIIITheirs
OS-level configurationParts II, XITheirs

That is a genuinely large amount of work, and for most teams it is worth paying for.

What does not move

ResponsibilityCovered inStill yours
Schema design and indexingPart XYours
Query performanceParts X, XVIYours
Lock contention and DDLParts IX, XVIIYours
Vacuum behaviour and bloatParts VII, VIIIYours
Connection managementPart IVYours
Knowing your RPO and RTOLesson XV-08Yours
Testing that restores workLesson XIII-08Yours
Deciding what to monitorPart XVIYours
Security model and rolesPart VYours
Capacity planningLesson XVII-01Yours

What you lose

Not disadvantages exactly; things this course used that you will not have.

No superuser. You get a role with a subset of privileges. Some extensions cannot be installed, some settings cannot be changed, and some diagnostic functions are unavailable.

No shell. Everything in lesson XVI-06 — ps, /proc, vmstat, iostat — is gone. You lose the ability to distinguish “the database is slow” from “the host is swapping”, and lesson XI-06’s OOM investigation is not available to you.

No direct file access. No pg_checksums against a stopped cluster, no examining pg_wal, no du on a data directory.

Restricted configuration. Restart parameters are frequently fixed, and shared_preload_libraries may be a supported list rather than a setting.

Their upgrade schedule. Minor upgrades happen in their window. Major upgrades are available when they choose.

Logs through their interface, with their retention, and often without log_line_prefix under your control.

Applying this course to a managed cluster

Most of it still applies, because most of it is about PostgreSQL rather than about the host.

  • Parts VI to XII — storage, MVCC, vacuum, locks, planner, memory, WAL — are unchanged. Every measurement in them was about PostgreSQL’s behaviour.
  • Part XIII’s concepts apply; the mechanics are the provider’s.
  • Part XVI’s statistics views are available; the OS correlation in lesson XVI-06 is not.
  • Part XVII’s DDL and capacity lessons apply exactly.

What changes is the toolbox, not the subject.

What to take from this

  • Managed services take installation, patching, hardware, replication mechanics, failover and backup execution.
  • They do not take schema, queries, locks, vacuum, connections, RPO/RTO, restore testing, monitoring choices, security or capacity.
  • They take backups. Only you can know they restore. Restore to a scratch instance on a schedule.
  • You lose superuser, shell access, file access, some configuration and control of the upgrade schedule.
  • Parts VI to XII apply unchanged; the OS correlation does not.
  • The failures measured in this course are almost all above the line a provider draws.

Cross-course references

  • Kubernetes for Production Sysadmins — Part CII (Managed versus self-managed Kubernetes) covers the identical decision one layer up, including the responsibilities that never transfer.
  • Linux for Production Sysadmins — Part LXXVII (Linux in the cloud) covers what the provider operates and what remains yours.
  • Observability for Production Sysadmins — Part LIX (Database observability) covers the instruments a managed service exposes, which is usually a subset and is the constraint that matters most.

Quiz

Knowledge check · 6 questions

  1. Q1. A managed provider reports nightly backups succeeding for a year. What has not been established?

  2. Q2. Which diagnostic capability from this course is unavailable on a typical managed service?

  3. Q3. Why do teams on managed services sometimes handle database incidents worse than teams running their own?

  4. Q4. Which responsibilities remain yours on a managed service? Select all that apply.

  5. Q5. The material on storage, MVCC, vacuum, locks, the planner and WAL applies unchanged to a managed service.

  6. Q6. Which questions distinguish managed database providers, and why are the usual ones useless?

Passing score: 75%. Answers are checked in this browser.