While reading this, I couldn't help but wonder what SaaS vendors like AWS (RDS) do to protect themselves from inevitable RCE that provides a shell to an attacker. Sooner or later someone is going to get a shell. Do they use virtualization in a way where rooting a machine doesn't give much of a foothold into the network?
Probably RDS is just a layer over EC2, but I'm not holding my breath waiting Amazon disclose much information about their setup (I wouldn't).
For Postgres at least you are not the god-like DBA, so I just trust they have all bases covered (or at least more resources than I have for keeping everything safe).